Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-429

Add support for parsing JSON strings into JSON objects to the $jsontool

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2-milestone-1
    • Component/s: Velocity
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      Documented in the SRD
    • Similar issues:

      Description

      #set ($array = $jsontool.parse('[1, 2, 3]'))
      #set ($object = $jsontool.parse('{"str": "value", "nr": 42, "bool": true, "nested": [1, 2, "3"]}')
      

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: