Deserializes a JSONValue to T
Deserialize a JSON string into T
Serializes an object to a JSONValue. To make this work, use serializable UDA on any fields that you want to be serializable. Automatically maps marked fields to corresponding JSON types. Any field not marked with serializable is not serialized.
Serialize T into a JSON string
A UDA to mark a JSON field as required for deserialization
This is a JSON serializer for OpenD programming language.
## Usage examples To use this serializer, annotate any field you want serialized with serializable. JSON serializator will attempt to automatically convert primitives to corresponding JSON tupes, such as any of the number types to JSON Number, string to JSON String, bool to JSON true/false.
By default, serializer will skip serializing fields that are null. If you want to ensure that a ceratin field exists in the JSON object, use jsonRequired attribute:
Marking a field with jsonRequired will also result in an error if a required field was missing when deserializing: