You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "John Wagenleitner (JIRA)" <ji...@apache.org> on 2016/04/29 04:40:12 UTC
[jira] [Resolved] (GROOVY-7728) LAX parser: Commenting out key/val
pairs doesn't work
[ https://issues.apache.org/jira/browse/GROOVY-7728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Wagenleitner resolved GROOVY-7728.
---------------------------------------
Resolution: Fixed
Assignee: John Wagenleitner
Fix Version/s: 2.4.7
Thanks for reporting the issue.
> 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
> Assignee: John Wagenleitner
> Priority: Minor
> Fix For: 2.4.7
>
>
> 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)