Assembly: RestSharp.Serializers.NewtonsoftJson
Namespace: RestSharp.Serializers.NewtonsoftJson
Class JsonNetSerializer
Inheritance
↳ IRestSerializer
↳ System.Object
Syntax
Field DefaultSettings
Syntax
Constructor JsonNetSerializer()
Create the new serializer that uses Json.Net with default settings
Syntax
Constructor JsonNetSerializer(JsonSerializerSettings)
Create the new serializer that uses Json.Net with custom settings
Syntax
Parameters
Name | Type | Description |
settings | JsonSerializerSettings | Json.Net serializer settings |
Method Serialize(Object)
Syntax
Parameters
Name | Type | Description |
obj | object | |
Returns
Method Serialize(Parameter)
Syntax
Parameters
Name | Type | Description |
bodyParameter | Parameter | |
Returns
Method Deserialize<T>(IRestResponse)
Syntax
Generic parameters
Parameters
Name | Type | Description |
response | IRestResponse | |
Returns
Property SupportedContentTypes
Syntax
Property ContentType
Syntax
Syntax
Class RestClientExtensions
Inheritance
↳ object
Syntax
Method UseNewtonsoftJson(IRestClient)
Use Json.Net serializer with default settings
Syntax
Parameters
Name | Type | Description |
client | IRestClient | |
Returns
Type | Description |
IRestClient | |
Method UseNewtonsoftJson(IRestClient, JsonSerializerSettings)
Use Json.Net serializer with custom settings
Syntax
Parameters
Name | Type | Description |
client | IRestClient | |
settings | JsonSerializerSettings | Json.Net serializer settings |
Returns
Type | Description |
IRestClient | |
Class RestRequestExtensions
Inheritance
↳ object
Syntax
Method UseNewtonsoftJson(IRestRequest)
Syntax
Parameters
Name | Type | Description |
request | IRestRequest | |
Returns
Type | Description |
IRestRequest | |
Method UseNewtonsoftJson(IRestRequest, JsonSerializerSettings)
Syntax
Parameters
Name | Type | Description |
request | IRestRequest | |
settings | JsonSerializerSettings | |
Returns
Type | Description |
IRestRequest | |