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

Either support JavaScript comments in JsonSlurper or fix documentation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.4.3, 2.4.4
    • Fix Version/s: None
    • Component/s: JSON
    • Labels:
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: