News for hackers. Stuff that matters.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by kwamenum86 on Tuesday April 20, 2010 @01:02PM (#1279946)
Crockford didn't create JSON any more than Al Gore created the Internet. He coined the term and evangelized the use of JSON as a data format.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by jerf on Tuesday April 20, 2010 @01:49PM (#1280094)
Yes, he did. JSON is absolutely positively NOT "whatever Javascript eval will accept as input and return a data structure for". It is a rigidly-defined subset of that, and the rigid definition of it is one of its significant advantages over several competing formats. Crockford created the rigid specification and JSON is the better for someone with experience having created it. Someone of lesser experience might have specified it less rigidly and lost much of the advantage thereby.

(YAML died on fuzziness in the specification mistakenly perceived as virtue. "YAML's not dead!" Compared to JSON, it is, and thank goodness.)

Incidentally, if you aren't using it strictly, you're losing some of the advantages yourself. If your parser accepts single-quoted strings, or even worse if your serializer generates them (ick!), just as one example, you're in some trouble, even if it all works for you right now.

Re:JavaScript Things I Wish I Knew Much Earlier In My Career by jlangenauer on Tuesday April 20, 2010 @06:43PM (#1280820)
It wasn't just fuzziness, it was outright whimsy in the YAML spec. Interpreting the string "Yes" (and "on") to actually mean a boolean true is one of the dumbest things I've seen in any specification, anywhere.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by sh1mmer on Tuesday April 20, 2010 @05:41PM (#1280683)
And Crockford always insists he "discovered" JSON. So please don't misrepresent him, based on the words of someone else.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by axod on Tuesday April 20, 2010 @01:33PM (#1280050)
I hate every single time I see that. JSON as a data format has been in use forever in various languages.