{"id":323,"date":"2006-12-21T07:55:37","date_gmt":"2006-12-21T13:55:37","guid":{"rendered":"http:\/\/blog.codedread.com\/archives\/2006\/12\/21\/winer-learns-a-little-json\/"},"modified":"2006-12-21T07:55:37","modified_gmt":"2006-12-21T13:55:37","slug":"winer-learns-a-little-json","status":"publish","type":"post","link":"https:\/\/www.codedread.com\/blog\/archives\/2006\/12\/21\/winer-learns-a-little-json\/","title":{"rendered":"Winer Learns a Little JSON"},"content":{"rendered":"<p>Funny, <a href=\"http:\/\/scripting.wordpress.com\/2006\/12\/20\/\">Dave's post<\/a> and the subsequent excellent <a href=\"http:\/\/scripting.wordpress.com\/2006\/12\/20\/scripting-news-for-12202006\/#comment-26223\">discussion<\/a> have probably inadvertently pushed JSON's awareness level a little higher (based on all the positive exclamations of discovery in that thread), more people will end up using JSON now, thanks to Dave's ignorance.  <!--more--><\/p>\n<p><script type=\"text\/javascript\" src=\"http:\/\/www.codedread.com\/googleads.js\"><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\"><\/script><\/p>\n<p>Hopefully all the thoughtfully written comments have helped Dave learn what JSON is all about.  Of course there was some off-the-cuff ranting to add to the comedy.  Here's the rant in case he later takes it down:<\/p>\n<blockquote><p>IT\u2019S NOT EVEN XML!<\/p>\n<p>As Dr Phil asks \u2014 What were they thinking?<\/p>\n<p>No doubt I can write a routine to parse this, but look at how deep they went to re-invent, XML itself wasn\u2019t good enough for them, for some reason (I\u2019d love to hear the reason). Who did this travesty? Let\u2019s find a tree and string them up. Now.<\/p>\n<p>Ladies and gentlemen, boys and girls, this is why I\u2019m fed up with Mountain View, Cupertino, Redwood Shores and Redmond. Give me Berkeley and New York any day. Silicon Valley is made up of little boys pulling their puds, constantly making love to each other, pretending the world revolves around them.\n<\/p><\/blockquote>\n<p>The funny part is that JSON is so much simpler than any other format out there, so I really do find it surprising that Dave doesn't \"get it\".  Sometimes it's hard to tell when someone is just clueless or on an ego trip (and hey, everyone is a little of both once in awhile).  Here are some choice nuggets from the comments section:<\/p>\n<p><a href=\"http:\/\/scripting.wordpress.com\/2006\/12\/20\/scripting-news-for-12202006\/#comment-26287\">Matthew Gifford<\/a>:<\/p>\n<blockquote><p>\nThe nice thing about JSON is that you *don\u2019t* have to parse it on the client side. Just save the returned data as a JavaScript variable and your data object is ready to go.\n<\/p><\/blockquote>\n<p>Spoken like someone who really wants to get something done instead of mess around with XML parsing to extract an array of integers...<\/p>\n<p><a href=\"http:\/\/scripting.wordpress.com\/2006\/12\/20\/scripting-news-for-12202006\/#comment-26351\">Joe Hewitt<\/a>:<\/p>\n<blockquote><p>\nFirst of all, you have to keep in mind that JSON was not invented, it was discovered. Nobody sat down and set \u201cLet\u2019s re-invent XMLRPC in JavaScript!\u201d It was simply that developers working with JavaScript realized that the language itself had a nice shorthand syntax for encoding generic data structures, and ran with it.<br \/>\n...<br \/>\nSo, at the end of the day, it comes down to a question of usability. JSON is just much more usable than XML if you\u2019re writing JavaScript.\n<\/p><\/blockquote>\n<p>Exactly!  There was no \"pud-pulling\" here, Dave.<\/p>\n<p><a href=\"http:\/\/scripting.wordpress.com\/2006\/12\/20\/scripting-news-for-12202006\/#comment-26383\">Douglas Crockford<\/a>:<\/p>\n<blockquote><p>\nI liked the part where Dr Phil said \u201cWhat were they thinking?\u201d I asked the same question when I first saw XML being proposed as a data format. There were obviously better alternatives.<\/p>\n<p>The good thing about reinventing the wheel is that you can get a round one.\n<\/p><\/blockquote>\n<p><a href=\"http:\/\/blog.codedread.com\/archives\/2005\/01\/21\/the-road-to-xml-is-paved-with-good-intentions\/\">Me too<\/a> \ud83d\ude42  Of course, I have learned since those earlier, naive days that XML has its place and certainly isn't going away anytime in the foreseeable future...<\/p>\n<p><script type=\"text\/javascript\" src=\"http:\/\/www.codedread.com\/googleads.js\"><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Funny, Dave&#8217;s post and the subsequent excellent discussion have probably inadvertently pushed JSON&#8217;s awareness level a little higher (based on all the positive exclamations of discovery in that thread), more people will end up using JSON now, thanks to Dave&#8217;s ignorance.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,9,25,11,28,30],"tags":[],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-javascript","category-quicklinks","category-software","category-technology","category-web","category-xml"],"_links":{"self":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/comments?post=323"}],"version-history":[{"count":0,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/323\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/media?parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/categories?post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/tags?post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}