Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7527

Either support JavaScript comments in JsonSlurper or fix documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.4.3, 2.4.4
    • None
    • JSON
    • Linux
      OpenJDK 7

    Description

      This page says that JsonSlurper supports parsing JavaScript comments:
      http://www.groovy-lang.org/json.html

      However, this does not parse:

      {
          "enterpriseDomain": "@example.com"
          ,"clientId": "abcdefghijklmnopqrstuvwxyz123456"
          ,"clientSecret": "abcdefghijklmnopqrstuvwxyz123456"
      }
      
          /*  Optional parameters with defaults shown */
          /* ,"tokensLockRetries": 1000               */
          /* ,"baseFolderName": "MyFolder"          */
      

      Please fix JsonSlurper (yay!) or the documentation (I has a sad!).

      Thank you!!!

      Attachments

        Activity

          People

            glaforge Guillaume Laforge
            luyseyal Stephen Olander-Waters
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: