Add an easy way to turn a JCR node into a JSON object
-----------------------------------------------------

                 Key: SLING-930
                 URL: https://issues.apache.org/jira/browse/SLING-930
             Project: Sling
          Issue Type: New Feature
          Components: Commons JSON
    Affects Versions: Commons JSON 2.0.2
            Reporter: Vidar S. Ramdal
            Assignee: Vidar S. Ramdal
            Priority: Minor
             Fix For: Commons JSON 2.0.4


There's currently no easy way to turn a JCR node into a JSON object. 

Granted, you have the JsonItemWriter, but it writes JSON text directly to an 
output stream. If you want to modify the JSON object before it is written, 
you're out of luck.

Therefore, Im creating the JsonJcrNode. It extends JSONObject, but otherwise 
behaves similarly to JsonItemWriter (in fact, some of the code is directly 
copied from JsonItemWriter). 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to