[ 
https://issues.apache.org/jira/browse/SLING-6872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seifert resolved SLING-6872.
-----------------------------------
    Resolution: Fixed

Completed: At revision: 1795961  

the implementation of the tick support is improved against SLING-6871:
* with tick-quoted names/strings ' and " are supported.
* ' has to be escaped when tick-quoted, but the escape symbol is removed when 
converted to  double quotes
* double quotes in tick-quoted strings may or may not be escaped, they are 
always escaped in the output

i've added a new field to the ParserOptions, a enumset of JsonParserFeatures. 
the two options COMMENTS and QUOTE_TICK are activated by default, but can be 
switched off when needed.

> JCR Content Parser: Support tick as well as double quote when parsing JSON 
> files
> --------------------------------------------------------------------------------
>
>                 Key: SLING-6872
>                 URL: https://issues.apache.org/jira/browse/SLING-6872
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR
>    Affects Versions: JCR Content Parser 1.1.0
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>             Fix For: JCR Content Parser 1.2.0
>
>
> currently the content parser supports JSON files only in "strict format", 
> plus the support for comments in JSON files.
> we should also support ticks for quoting names and string values, as in 
> SLING-6871 for the content loader.



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

Reply via email to