I have made a proof-of-concept of a JSON-Schema generation from ADL in order to validate JSON instances. I have also read about several projects to generate other artifacts from JSON-Schema.
2015-04-21 12:58 GMT+02:00 Duarte Ferreira <dferreira at fe.up.pt>: > Hi, > > > > First of all I would like to say Hello since this is my first post on the > mailing list. > > > > Second, my questions: > > I?m trying to do a implementation of OpenEHR in Java with the persistence > layer in JSON. > > I?ve searched the web but all the implementations/libraries I find use XML > to store and the openEHR java-libs to process the ADL files. > > My application would try to follow the REST/JSON API in > https://www.ehrscape.com/ and since the persistence is also made in JSON, I > think it?s an expensive overhead to convert from JSON->XML-> AOM -> validate > -> XML->JSON-> database. > > If I follow the java-libs way but use JSON at both ends ( storage and REST > API ) I would have to convert back to XML or AOM to validate the structure > with the java-libs. > > > > I?m I missing something here or is just a bad idea to do persistence in > JSON? > > > > Hope my doubts actually make sense and you can give me some guidance. > > > > Best, > > Duarte Ferreira > > > > > _______________________________________________ > openEHR-technical mailing list > openEHR-technical at lists.openehr.org > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

