Class FacetJsonWriter

All Implemented Interfaces:
Marshaller<CompositeType>, Writer<CompositeType>

@Setup(mode=SINGLETON, priority=2000) public class FacetJsonWriter extends ExtensibleEntityJsonWriter<CompositeType>
Convert CompositeType to Json.

This marshaller is enrichable: register class implementing AbstractJsonEnricher and managing CompositeType.

This marshaller is also extensible: extend it and simply override ExtensibleEntityJsonWriter.extend(Object, JsonGenerator).

Format is:

 {
   "entity-type":"facet",
   "name": "FACET_NAME",
   "schemas": [ { see SchemaJsonWriter for format }, { ... }, ... ],
             <-- contextParameters if there are enrichers activated
             <-- additional property provided by extend() method
 }
 
Since:
7.2