Is it possible to deserialize JSON from the JCR REST API?

  Written by The Jahia Team
 
Developers
   Estimated reading time:
7.1.1

Is it possible to deserialize JSON from the JCR REST API?

Answer

The structure returned by the REST API is not made to be directly de-serializable. The API is build to be used more by javascript clients than Java. Especially the structure containing the child is not canonical as it has been added later on.

That said it should be possible to deserialize the JSON. Development has built something that is working. On request, it might be possible to provide something. For the current ticket, the customer chose to use another method.