You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2010/12/20 15:53:06 UTC

[jira] Closed: (SLING-1813) Update json.org JSONObject to fix unicode character encoding issue

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

Carsten Ziegeler closed SLING-1813.
-----------------------------------


> 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.