Stephen Olander-Waters created GROOVY-7728: ----------------------------------------------
Summary: LAX parser: Commenting out key/val pairs doesn't work Key: GROOVY-7728 URL: https://issues.apache.org/jira/browse/GROOVY-7728 Project: Groovy Issue Type: Bug Components: JSON Affects Versions: 2.4.5 Environment: Linux OpenJDK 7 (java version "1.7.0_91") Reporter: Stephen Olander-Waters Priority: Minor This is in regards to {{JsonParserType.LAX}}. I'm calling it with this code: {code} def slurpOpts = new JsonSlurper().setType(JsonParserType.LAX).parse(new File(ConfigFileName)) slurpOpts.each {k, v -> myOpts.put(k, slurpOpts.get(k))} {code} Here is my JSON. {{appUserId}} is parsed but it should be commented out. The key {{baseFolderName}} is correctly commented out. {code} { "enterpriseDomain": "@example.com" ,"enterpriseId": "123456" ,"clientId": "abcdefghijklmnopqrstuvwxyz123456" ,"clientSecret": "abcdefghijklmnopqrstuvwxyz123456" ,"keyId": "12345678" ,"keyFileName": "/etc/PrintToBox/PrintToBox_private_key.pem" ,"keyPassword": "12345678901234567890" // ,"appUserId": "123456789" // Optional parameters with defaults shown // ,"baseFolderName": "PrintToBox" } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)