Deserialization method.
Deserializes source
into an object built using ctor
.
Annotated properties are deserialized into a property using the name
value as the source name (defaults to the property name).
the type of output object
the destination constructor
the value to be deserialized
the string parser to deserialize strings into JSON objects. Defaults to JSON.parse
.
the deserialized object
An error if a class encountered while deserializing has no JsonClass decorator.
JsonMapper
Deserializes an array by applying deserialize to each element.
the type of output object
the destination constructor
the array to be deserialized
the deserialized object
JsonMapper
Serialization method.
Transforms source
into a new JSON value by applying the "serialization" step for each property decorator.
Annotated properties are serialized into a property using the name
value as the destination name (defaults to the property name).
the value to be serialized.
the transformed JSON value.
An error if a class encountered while serializing has no JsonClass decorator.
JsonMapper
Generated using TypeDoc
Class for JSON Mapping.
Export