C# Class RestSharp.Newtonsoft.Json.NewtonsoftJsonSerializer

Default JSON serializer for request bodies Doesn't currently use the SerializeAs attribute, defers to Newtonsoft's attributes
Inheritance: ISerializer
Show file Open project: adamfisher/RestSharp.Newtonsoft.Json Class Usage Examples

Public Methods

Method Description
NewtonsoftJsonSerializer ( ) : System.IO

Default serializer

NewtonsoftJsonSerializer ( JsonSerializer serializer ) : System.IO

Default serializer with overload for allowing custom Json.NET settings

Serialize ( object obj ) : string

Serialize the object as JSON

Method Details

NewtonsoftJsonSerializer() public method

Default serializer
public NewtonsoftJsonSerializer ( ) : System.IO
return System.IO

NewtonsoftJsonSerializer() public method

Default serializer with overload for allowing custom Json.NET settings
public NewtonsoftJsonSerializer ( JsonSerializer serializer ) : System.IO
serializer Newtonsoft.Json.JsonSerializer
return System.IO

Serialize() public method

Serialize the object as JSON
public Serialize ( object obj ) : string
obj object Object to serialize
return string