Namespace Unity.Serialization.Json
Classes
InvalidJsonException
The exception that is thrown when json input is invalid.
JsonObject
Generic, mutable data structure used to represent JavaScript Objects.
JsonSerialization
Helper class that generically writes any property container as a JSON string.
@NOTE This class makes heavy use of StringBuilder
and .ToString
on primitives, which allocates large amounts of memory. Use it sparingly.
@TODO
- Optimization
JsonVisitor
A visitor that traverses a property container and outputs a JSON string.
You can enrich the serialization by
- Extend this class and overriding any methods.
- Implement a JsonVisitorAdapter and register it using
JsonVisitor.Style
Constants for styling and special keys.
JsonVisitorAdapter
The JsonVisitorAdapter can be inherited to implement custom serializers for user-defined types.
Enums
JsonDataType
Types of supported generic JSON objects.
JsonValidationType
The validation type to use.