JEST represents persistent Java object graph in a schema-compliant XML. The
schema is metamodel-driven and hence invariant to particular domain model.
The schema jest-instance.xsd is as follows:
Metamodel-driven schema for JEST XML
## Example of a serialized object graph
The example shows a Person (primary key p1) who is her own partner.
Example of Object Graph with Circular Reference
p1Fri Sep 08 00:00:00 CDT 1989MaryFemaleSmith101C1State1Street110001
## JSON Representation
String-based representation of persistent Java object graphs in either XML
or more succinct JSON form has to address the critical issue of circular
reference, because persistent object graphs
often contains circular reference. JSON, at this point of writing, does not
address circular reference. Hence JEST introduces special semantics within
JSON format to refer to
instances in a serialized graph. However, the enhanced JSON can be parsed
by standard JSON parsers.
Enhanced JSON representation in JEST introduces two _special_ fields named
`$id` and `$ref` to address circular reference. Each JSON object
carries a `$id` field whose value is the persistent identity of the
corresponding entity. When JSON serialization encounters a circular
reference a