jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-19) Consolidate JSON utilities
Date Fri, 16 Mar 2012 09:59:42 GMT

    [ https://issues.apache.org/jira/browse/OAK-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231013#comment-13231013
] 

Thomas Mueller commented on OAK-19:
-----------------------------------

+1

There is json, and jsop (json-diff), which is a superset of json. 
We anyway need jsop, so we might not need the same tools in the json variant.
As for jsop, what I wrote is:

org.apache.jackrabbit.mk.json.JsopWriter
- the interface is basically JSONWriter 
  http://www.json.org/javadoc/org/json/JSONWriter.html
- two implementations (JsopStream and JsopBuilder), 
  we might not need JsopBuilder

org.apache.jackrabbit.mk.json.JsopReader
- a low-level tokenizer with a stax-type interface
- two implementations (JsopTokenizer and JsopStream), 
  where JsopStream is very good for pipelining as it
  avoids to create/parse strings

Plus we have org.apache.jackrabbit.oak.jcr.json.*, but unfortunately
I don't have an overview about that currently. Some classes are named
Jsop* and some Json* but it seems both can actually parse / generate jsop?
Not sure if some of those classes only support json?

                
> Consolidate JSON utilities
> --------------------------
>
>                 Key: OAK-19
>                 URL: https://issues.apache.org/jira/browse/OAK-19
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: core, jcr
>            Reporter: angela
>
> i seems confusing to me that we are having multiple different json utilities in the
> current oak stack:
> - a dependency to google-json 
> - a complete json utility including parser, json abstraction in oak-jcr (org.apache.jackrabbit.oak.jcr.json)
> - another json utility in org.apache.jackrabbit.mk.json containing tokenizer et. al.
> imo we should only have one single json utility and i would therefore suggest that
> we discuss this issue and try to reach a consensus which json-library we want to use.
> what do you think?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message