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