[ https://issues.apache.org/jira/browse/SLING-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Khoury updated SLING-1813: --------------------------------- Attachment: fix-SLING-1813.diff Attaching patch to fix this issue. > Update json.org JSONObject to fix unicode character encoding issue > ------------------------------------------------------------------ > > Key: SLING-1813 > URL: https://issues.apache.org/jira/browse/SLING-1813 > Project: Sling > Issue Type: Bug > Components: Commons > Affects Versions: Commons JSON 2.0.2, Commons JSON 2.0.4 > Reporter: Alexander Klimetschek > Attachments: fix-SLING-1813.diff > > > Special unicode characters like the LS (\u2028) line separator in a string > value make the generated json invalid. This seems to be fixed in the latest > version of the json.org library, but sling's copied version of it does not > handle it. Compare the quote() method (switch default case): > http://www.JSON.org/java/org/json/JSONObject.java > http://svn.apache.org/viewvc/sling/trunk/bundles/commons/json/src/main/java/org/apache/sling/commons/json/JSONObject.java?revision=785979&view=markup -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.