C# Class Restcoration.JsonSerializer

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

Public Methods

Method Description
JsonSerializer ( ) : System

Default serializer

JsonSerializer ( Newtonsoft serializer ) : System

Default serializer with overload for allowing custom Json.NET settings

Serialize ( object obj ) : string

Serialize the object as JSON

Method Details

JsonSerializer() public method

Default serializer
public JsonSerializer ( ) : System
return System

JsonSerializer() public method

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

Serialize() public method

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