On Thu, May 14, 2020 at 9:25 AM Carsten Ziegeler <cziege...@apache.org> wrote: > > I think it makes sense to discuss API options first, to avoid going back > and forth. ..
Agreed. FWIW for the graphql-core module that I'm working on I need to convert arbitrary objects to and from JSON [1], I suppose that's part of what we need here. So far I haven't designed an API for that, just mimicked https://github.com/jdereg/json-io which I'm using for now, as it has minimal requirements and is simple to use. >... First question being, which JSON library do we support? As we settled on > johnzon, I assume thats the one... It looks like the Johnzon Mapper module [2] should support what I need but I haven't found real documentation about it so far. I'll have a look a might switch the graphql-core to it if I like what I see. -Bertrand [1] https://github.com/apache/sling-org-apache-sling-graphql-core/blob/master/src/main/java/org/apache/sling/graphql/core/json/JsonSerializer.java [2] http://johnzon.apache.org/apidocs/org/apache/johnzon/mapper/package-summary.html