Why is JSON so popular? Developers want out of the syntax business
blog.mongolab.com
Why is JSON so popular? Developers want out of the syntax business
1–10 of 133 posts
Re: Why is JSON so popular? Developers want out of the syntax business
#2Re: Why is JSON so popular? Developers want out of the syntax business
#3Re: Why is JSON so popular? Developers want out of the syntax business
#4If you want to handle JSON data in JavaScript use JSON.parse -- it's the safest, fastest, and most correct path to having your data available to you.
[update: edited to remove bizarre use of whole vs hole... boggles]
Re: Why is JSON so popular? Developers want out of the syntax business
#5Re: Why is JSON so popular? Developers want out of the syntax business
#6just gimme sexps
Re: Why is JSON so popular? Developers want out of the syntax business
#7Re: Why is JSON so popular? Developers want out of the syntax business
#8Ironically, php provides a way to access XML data almost as easily as JASON data - SimpleXML. Do other languages/frameworks really have nothing similar?
Re: Why is JSON so popular? Developers want out of the syntax business
#9The post actually appears to endorse using eval to parse JSON. Not only does that allow invalid JSON through, it disallows some valid JSON, and of course is a huge security hole. If you want to handle JSON data in JavaScript use JSON.parse -- it's the safest, fastest, and most correct path to having your data available to you. [update: edited to remove bizarre use of whole vs hole... boggles ]
json2.js is a must! JSON.parse and JSON.stringify are your friends.
https://github.com/douglascrockford/JSON-js/blob/master/json...