Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Commons JSON 2.0.2, Commons JSON 2.0.4
-
None
Description
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):