Sling
  1. Sling
  2. SLING-930

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

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Commons JSON 2.0.2
    • Fix Version/s: Commons JSON 2.0.4
    • Component/s: Commons
    • Labels:
      None

      Description

      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).

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Vidar S. Ramdal
            Reporter:
            Vidar S. Ramdal
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development