Y
Hacker News
new
|
ask
|
show
|
jobs
by
gnaritas
4659 days ago
Not really as JSON is not valid JavaScript and requires its own parser. It's based on JavaScript, but it is not JavaScript.
1 comments
daxelrod
4659 days ago
I was skeptical, but I did some searching, and you appear to be right! The difference seems to come down to string handling:
http://timelessrepo.com/json-isnt-a-javascript-subset
link
gnaritas
4658 days ago
Ha, same article where I first learned this.
link
http://timelessrepo.com/json-isnt-a-javascript-subset