public interface JsonAdapter
Implementors are encouraged to use jackson JSON library since it is the one used by automation.
Also note that the JSON format for an object must follow the following schema:
{ "entity-type": "typeName" "value": { the marshalled object } }The value is either a scalar value (from primitive types) either a JSON object
{ ... }
The type name is
the full class name of the serialized object. The primitive types are mapped to a short name as following:
Modifier and Type | Method and Description |
---|---|
void |
toJSON(OutputStream out) |
void toJSON(OutputStream out) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.