You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Guillaume Laforge (JIRA)" <ji...@apache.org> on 2015/07/29 20:29:04 UTC
[jira] [Resolved] (GROOVY-7527) Either support JavaScript comments
in JsonSlurper or fix documentation
[ https://issues.apache.org/jira/browse/GROOVY-7527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Laforge resolved GROOVY-7527.
---------------------------------------
Resolution: Not A Problem
I'm closing the issue, but we might perhaps extend the documentation a bit to be more explicit, with an example, showing how to do it.
> Either support JavaScript comments in JsonSlurper or fix documentation
> ----------------------------------------------------------------------
>
> Key: GROOVY-7527
> URL: https://issues.apache.org/jira/browse/GROOVY-7527
> Project: Groovy
> Issue Type: Bug
> Components: JSON
> Affects Versions: 2.4.3, 2.4.4
> Environment: Linux
> OpenJDK 7
> Reporter: Stephen Olander-Waters
> Assignee: Guillaume Laforge
> Priority: Minor
> Labels: json, jsonslurper
>
> This page says that JsonSlurper supports parsing JavaScript comments:
> http://www.groovy-lang.org/json.html
> However, this does not parse:
> {code:javascript}
> {
> "enterpriseDomain": "@example.com"
> ,"clientId": "abcdefghijklmnopqrstuvwxyz123456"
> ,"clientSecret": "abcdefghijklmnopqrstuvwxyz123456"
> }
> /* Optional parameters with defaults shown */
> /* ,"tokensLockRetries": 1000 */
> /* ,"baseFolderName": "MyFolder" */
> {code}
> Please fix JsonSlurper (yay!) or the documentation (I has a sad!).
> Thank you!!! :)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)