# Return Method

## Overloads

| [Return<T>(Func<JToken, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Response.Return.htm#Qlik_Sense_JsonRpc_Response_Return__1_System_Func_Newtonsoft_Json_Linq_JToken___0__) |  | Deserializes the return value of an RPC response. Equivalent to calling [Result<T>(String, Func<JToken, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Response.Result.htm#Qlik_Sense_JsonRpc_Response_Result__1_System_String_System_Func_Newtonsoft_Json_Linq_JToken___0__)<br>with parameter "name" set to "qReturn". |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Response.Return.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Response.Return.htm)

## Return&lt;T&gt;(Func&lt;JToken, T&gt;)

Deserializes the return value of an RPC response. Equivalent to calling [Result<T>(String, Func<JToken, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Response.Result.htm#Qlik_Sense_JsonRpc_Response_Result__1_System_String_System_Func_Newtonsoft_Json_Linq_JToken___0__) with parameter "name" set to "qReturn".

### Declaration

```

          public T Return<T>(Func<JToken, T> deserializer)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Func&lt;Newtonsoft.Json.Linq.JToken, T&gt; | deserializer | The method to use to translate a token to the target type. |

### Returns

| Type | Description |
| --- | --- |
| T | A task that resolves the deserialized value. |

### Type Parameters

| Name | Description |
| --- | --- |
| T | The type to which the json response should be deserialized. |