Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about quote() method escape ranges #51

Closed
JoeJErnst opened this issue Apr 11, 2012 · 1 comment
Closed

Question about quote() method escape ranges #51

JoeJErnst opened this issue Apr 11, 2012 · 1 comment

Comments

@JoeJErnst
Copy link

Can you explain why you included the range of characters between \u2000 and \u2100 in the section of the quote() method that escapes characters? I understand why the other two ranges are escaped, and I understand that any character may be escaped, I'm just looking for the reasoning behind escaping that particular range of characters.

Thanks in advance.

@douglascrockford
Copy link
Contributor

There are browsers that do bad things with those characters. I escaped them so that JSON could be embedded in HTML.

BGehrels pushed a commit to BGehrels/JSON-java that referenced this issue Apr 29, 2020
Verify opt method conversions for JSONArray and JSONObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants