JsonSerializer

Members

Aliases

fromJson
deprecated alias fromJson = toObject
Undocumented in source.

Static functions

deserializeObject
void deserializeObject(T target, const(JSONValue) json)
Undocumented in source. Be warned that the author may not have intended to support it.
deserializeObject
void deserializeObject(T target, const(JSONValue) json)
getItemAs
T getItemAs(const(JSONValue) json, string name, T defaultValue)
Undocumented in source. Be warned that the author may not have intended to support it.
handleException
T handleException(const(JSONValue) json, string message, T defaultValue)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeObject
deprecated JSONValue serializeObject(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeObject
JSONValue serializeObject(T value, bool[size_t] serializationStates)

class object

toJson
JSONValue toJson(T value)

class

toJson
deprecated JSONValue toJson(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
toJson
JSONValue toJson(T value)

struct

toJson
JSONValue toJson(T value, bool asInteger)

SysTime

toJson
JSONValue toJson(T value)

JsonSerializable

toJson
JSONValue toJson(T value)

T[]

toJson
JSONValue toJson(T value)

Basic type

toJson
JSONValue toJson(T value)

VK

toJsonImpl
JSONValue toJsonImpl(T value, bool[size_t] serializationStates)

Implements for struct to json

toObject
T toObject(string json, T defaultValue)
Undocumented in source. Be warned that the author may not have intended to support it.
toObject
T toObject(string json, T defaultValue)
Undocumented in source. Be warned that the author may not have intended to support it.
toObject
T toObject(const(JSONValue) json, T defaultValue)

Converts a JSONValue to an object of type T by filling its fields with the JSON's fields.

toObject
T toObject(const(JSONValue) json, T defaultValue)

struct

toObject
T toObject(const(JSONValue) json, T defaultValue)

JsonSerializable

toObject
T toObject(const(JSONValue) json, T defaultValue)

SysTime

toObject
T toObject(const(JSONValue) json)

JSONValue

toObject
T toObject(const(JSONValue) json)

bool

toObject
T toObject(const(JSONValue) json, T defaultValue)

string

toObject
T toObject(const(JSONValue) json, T defaultValue)

Object array

toObject
T toObject(const(JSONValue) json, T defaultValue)

AssociativeArray

Meta