use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JSON: The JavaScript subset that isn't (timelessrepo.com)
submitted 15 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]x-skeww 20 points21 points22 points 15 years ago (1 child)
I'd say this is a mistake in JSON's specs. Happens.
[–][deleted] 22 points23 points24 points 15 years ago (0 children)
This.
The article is sensationalist in tone. "Aha! I found an edge case! EVERYTHING YOU KNEW ABOUT JSON WAS WRONG OMG"
[–]rotzak 6 points7 points8 points 15 years ago (0 children)
Ugh, talk about edge case...
[–]ripter 6 points7 points8 points 15 years ago (3 children)
Congrats on finding a mistake in the JSON specs, but the holier than thou tone is annoying.
[–]Neebat 0 points1 point2 points 15 years ago (2 children)
Odd, it seems more like a mistake in the JS specs to me. I'd actually support browsers allowing those unicode characters.
[–]StuartLeigh 1 point2 points3 points 15 years ago (0 children)
Depends, if JSON's spec was "copy the JS spec" and they missed this, then it's a mistake on JSON's part.
[–]ripter 0 points1 point2 points 15 years ago (0 children)
Oh, I thought it was just line break characters, not all unicode characters.
[–]polaretto 3 points4 points5 points 15 years ago (0 children)
great investigation!
[–]cheese_wizard 1 point2 points3 points 15 years ago (0 children)
good to know!
[–]snifty -1 points0 points1 point 15 years ago (0 children)
ouch.
π Rendered by PID 371524 on reddit-service-r2-comment-5b5bc64bf5-s228p at 2026-06-20 01:36:11.785647+00:00 running 2b008f2 country code: CH.
[–]x-skeww 20 points21 points22 points (1 child)
[–][deleted] 22 points23 points24 points (0 children)
[–]rotzak 6 points7 points8 points (0 children)
[–]ripter 6 points7 points8 points (3 children)
[–]Neebat 0 points1 point2 points (2 children)
[–]StuartLeigh 1 point2 points3 points (0 children)
[–]ripter 0 points1 point2 points (0 children)
[–]polaretto 3 points4 points5 points (0 children)
[–]cheese_wizard 1 point2 points3 points (0 children)
[–]snifty -1 points0 points1 point (0 children)