[ https://issues.apache.org/jira/browse/SLING-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933901#action_12933901 ]
Justin Edelson commented on SLING-1813: --------------------------------------- applied slightly different fix (closer to that in the current json.org version) in r1036966 > 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 > Assignee: Justin Edelson > Fix For: Commons JSON 2.0.6 > > 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.