Formats a subclass of a variable-schema superclass.
Variable-schema objects must have a type name (string) and a definition (JSON). The schema of
the definition is specified based on the type name. These formats read the type name and then
appropriately handle the JSON definition.
For example, the type names for a user id object may be "guest" and "registered" and the
corresponding definitions may include a random string for the guest and an integer id for
the registered user.
Formats a subclass of a variable-schema superclass.
Variable-schema objects must have a type name (string) and a definition (JSON). The schema of the definition is specified based on the type name. These formats read the type name and then appropriately handle the JSON definition.
For example, the type names for a user id object may be "guest" and "registered" and the corresponding definitions may include a random string for the guest and an integer id for the registered user.
The JSON object looks like:
See OrFormats for defining
UserId
's OFormat in this example.