C# Class SchooxSharp.Api.Helpers.JsonNetSerializer

Default JSON serializer for request bodies Doesn't currently use the SerializeAs attribute, defers to Newtonsoft's attributes
Inheritance: ISerializer
Mostra file Open project: jamesbar2/SchooxSharp

Public Methods

Method Description
JsonNetSerializer ( ) : System.IO

Default serializer

JsonNetSerializer ( Newtonsoft serializer ) : System.IO

Default serializer with overload for allowing custom Json.NET settings

Serialize ( object obj ) : string

Serialize the object as JSON

Method Details

JsonNetSerializer() public method

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

JsonNetSerializer() public method

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

Serialize() public method

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