{"id":144,"date":"2011-02-28T00:54:05","date_gmt":"2011-02-28T00:54:05","guid":{"rendered":"http:\/\/xphone.pt\/devnotes\/?p=144"},"modified":"2011-02-28T01:42:35","modified_gmt":"2011-02-28T01:42:35","slug":"json-vs-xml-data-size-parsing-and-display-speed","status":"publish","type":"post","link":"http:\/\/xphone.pt\/devnotes\/2011\/02\/json-vs-xml-data-size-parsing-and-display-speed\/","title":{"rendered":"JSON vs XML &#8211; Data Size, Parsing and Display Speed"},"content":{"rendered":"<p>In my previous post &#8220;<a title=\"App Interface and Data Update with UIWebViews, XML, XSLT and HTML\" href=\"http:\/\/xphone.pt\/devnotes\/2011\/02\/app-interface-and-data-update-with-uiwebviews-xml-xslt-and-html\/\" target=\"_self\">App Interface and Data Update with UIWebViews, XML, XSLT and HTML<\/a>&#8220;, I&#8217;ve written a little bit about how I have used XML to dynamically update and display our App&#8217;s data.<\/p>\n<p>Following that, now that I&#8217;m preparing a new similar App, I&#8217;ve read   lots of stuff about JSON and about JSON vs XML on the web, which is   making me to consider the change of XML by JSON.<\/p>\n<p>Many people argues that JSON is better than XML but that&#8217;s not clear   and it seems that it depends a lot in what we need to do! Well, I know   that&#8217;s not something new, it&#8217;s what happens most of the times when  we&#8217;ve  to choose some technology against other(s).<\/p>\n<p>But I want to choose the &#8220;best&#8221; for my case, since I have plans to   port this new App at least to Android OS and maybe to Windows Phone 7.   And if that choice can reduce my total work in those platforms, it&#8217;ll be   an important choice.<\/p>\n<p>In general what I&#8217;ve seen is that XML is largely supported in all   common browsers and in those mobile platforms. JSON is relatively new,   however it&#8217;s becoming supported almost everywhere but mostly without   native parsers.<\/p>\n<p>That&#8217;s the case with iOS and WebKit (Safari&#8217;s engine). So I decided to do some previous experiments&#8230;<\/p>\n<p>Since this article is growing a little more than I preview, I&#8217;ll publish the results of my tests in the following posts:<\/p>\n<ul>\n<li>&#8220;<a title=\"JSON vs XML - Part 1: Data Size\" href=\"http:\/\/xphone.pt\/devnotes\/2011\/02\/json-vs-xml-part-1-data-size\/\" target=\"_self\">JSON vs XML &#8211; Part 1: Data Size<\/a>&#8221; and<\/li>\n<li>&#8220;JSON vs XML &#8211; Part 2: Parsing and Display Speed&#8221; (<em>to be published soon&#8230;<\/em>).<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post &#8220;App Interface and Data Update with UIWebViews, XML, XSLT and HTML&#8220;, I&#8217;ve written a little bit about how I have used XML to dynamically update and display our App&#8217;s data. Following that, now that I&#8217;m preparing a new similar App, I&#8217;ve read lots of stuff about JSON and about JSON vs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[62,13,36,61,44,45],"tags":[15,14,39,60,43,70,3,4,46,47,71,40],"_links":{"self":[{"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/posts\/144"}],"collection":[{"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":21,"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":196,"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/posts\/144\/revisions\/196"}],"wp:attachment":[{"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xphone.pt\/devnotes\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}