Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gildas
on May 15, 2011
|
parent
|
context
|
favorite
| on:
JSON: The JavaScript subset that isn't
Right, you don't need "U+2028" character to reproduce the error. Why ? Because the parser handles {} as a block code, not as an object declaration.
Actually, the "good example" should be : var obj = {"JSON":"ro cks!"}
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Actually, the "good example" should be : var obj = {"JSON":"ro cks!"}