Table of Contents

Class GeotabJsonSerializer2

Namespace
Geotab.Checkmate.Serialization
Assembly
Geotab.Checkmate.ObjectModel.dll

Converts an object to a JSON string and back. Contains the JsonConverters from BaseJsonSerializer2 as well as it's own.

public class GeotabJsonSerializer2 : BaseJsonSerializer2
Inheritance
GeotabJsonSerializer2
Derived
Inherited Members

Constructors

GeotabJsonSerializer2(IEnumerable<JsonConverter>)

Initializes a new instance of the GeotabJsonSerializer2 class.

public GeotabJsonSerializer2(IEnumerable<JsonConverter> converters)

Parameters

converters IEnumerable<JsonConverter>

The additional converters which are both read and write capable.

GeotabJsonSerializer2(IEnumerable<JsonConverter>, IEnumerable<JsonConverter>, bool)

Initializes a new instance of the GeotabJsonSerializer2 class.

public GeotabJsonSerializer2(IEnumerable<JsonConverter> additionalWriteCapableConverters, IEnumerable<JsonConverter> additionalReadCapableConverters, bool prettyPrint = false)

Parameters

additionalWriteCapableConverters IEnumerable<JsonConverter>

The additional converters which are write capable.

additionalReadCapableConverters IEnumerable<JsonConverter>

Additional converters which are read capable.

prettyPrint bool

If true the JSON string will be human readable.

Properties

Instance

Gets the singleton instance where possible so the json.net contract resolvers are reused.

public static GeotabJsonSerializer2 Instance { get; }

Property Value

GeotabJsonSerializer2

The singleton instance where possible so the json.net contract resolvers are reused.