Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.server.jaxrs
Interface JsonAdapter

All Known Implementing Classes:
DefaultJsonAdapter

public interface JsonAdapter

Should be implemented by objects that needs to be returned in response to clients as JSOn objects

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:

Author:
Bogdan Stefanescu

Method Summary
 void toJSON(OutputStream out)
           
 

Method Detail

toJSON

void toJSON(OutputStream out)
            throws IOException
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.