[ 
https://issues.apache.org/jira/browse/CONFIGURATION-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15975178#comment-15975178
 ] 

The Alchemist commented on CONFIGURATION-258:
---------------------------------------------

@[~joehni]: Good call.  If we limit ourselves to Java 8, we can use 
[ScriptObjectMirror.wrapAsJSONCompatible()|https://docs.oracle.com/javase/8/docs/jdk/api/nashorn/jdk/nashorn/api/scripting/ScriptObjectMirror.html#wrapAsJSONCompatible-java.lang.Object-java.lang.Object-]
 but it seems like an external library is the way to go.

The 
[org.json|http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.json%22%20AND%20a%3A%22json%22]
 is nice small library (~55KB).  Any objections to that?

> JSON configuration
> ------------------
>
>                 Key: CONFIGURATION-258
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-258
>             Project: Commons Configuration
>          Issue Type: New Feature
>          Components: Format
>    Affects Versions: 1.3
>            Reporter: Antonio López-Cerón Vivo
>            Priority: Minor
>             Fix For: 2.x
>
>
> JSON  is a lightweight data-interchange format
> {code}
> {"menu": {
>   "id": "file",
>   "value": "File",
>   "popup": {
>     "menuitem": [
>       {"value": "New", "onclick": "CreateNewDoc()"},
>       {"value": "Open", "onclick": "OpenDoc()"},
>       {"value": "Close", "onclick": "CloseDoc()"}
>     ]
>   }
> }}
> {code}
> All references can be located at
> http://www.json.org/



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to