C# OJAI Client API
MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter Class Reference
Inheritance diagram for MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter:

Public Member Functions

override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 

Private Member Functions

void WriteValue (JsonWriter writer, OjaiValue value)
 Writes the JSON representation of the OjaiValue. More...
 
void WriteDict (JsonWriter writer, IDictionary< string, OjaiValue > value)
 Writes the JSON representation of the Dictionary. More...
 
void WriteArray (JsonWriter writer, IList< OjaiValue > value)
 Writes the JSON representation of the List. More...
 
OjaiValue ReadValue (JsonReader reader)
 Reads the JSON representation of the object. More...
 
OjaiValue ReadArray (JsonReader reader)
 Reads the JSON representation of the List. More...
 
OjaiValue ReadObject (JsonReader reader)
 Reads the JSON representation of the OjaiValue. More...
 

Member Function Documentation

◆ CanConvert()

override bool MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.CanConvert ( Type  objectType)

Determines whether this instance can convert the specified object type.

◆ ReadArray()

OjaiValue MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.ReadArray ( JsonReader  reader)
private

Reads the JSON representation of the List.

◆ ReadJson()

override object MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

Reads the JSON representation of the object.

◆ ReadObject()

OjaiValue MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.ReadObject ( JsonReader  reader)
private

Reads the JSON representation of the OjaiValue.

◆ ReadValue()

OjaiValue MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.ReadValue ( JsonReader  reader)
private

Reads the JSON representation of the object.

◆ WriteArray()

void MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.WriteArray ( JsonWriter  writer,
IList< OjaiValue value 
)
private

Writes the JSON representation of the List.

◆ WriteDict()

void MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.WriteDict ( JsonWriter  writer,
IDictionary< string, OjaiValue value 
)
private

Writes the JSON representation of the Dictionary.

◆ WriteJson()

override void MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

Writes the JSON representation of the object.

◆ WriteValue()

void MapRDB.Driver.Ojai.OjaiDictionaryJsonConverter.WriteValue ( JsonWriter  writer,
OjaiValue  value 
)
private

Writes the JSON representation of the OjaiValue.