Title: JEST Representation JEST response is either XML or JSON. ## XML Representation 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
p1 Fri Sep 08 00:00:00 CDT 1989 Mary Female Smith 101 C1 State1 Street1 10001 ## 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