<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JSON Web Services &#8211; the XML JSON debate further ahead</title>
	<atom:link href="http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/</link>
	<description>Tracing the course of Web Technology</description>
	<lastBuildDate>Wed, 10 Mar 2010 12:47:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: nitinpai</title>
		<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/comment-page-1/#comment-200</link>
		<dc:creator>nitinpai</dc:creator>
		<pubDate>Sun, 22 Apr 2007 09:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/#comment-200</guid>
		<description>Hi pascal,

JSON is data centric and XML is meta data centric.
JSON and XML are never intended to be read by humans. I understand your concern where you mention the fact if JSON was used in Ant. But tell me, do you ever transfer Ant Build Files to any requesting service?

I want to highlight the case of &lt;b&gt;transfer of data&lt;/b&gt; and NOT on configuring meta data. Of course XML is far better but only while configuring meta data. If you use XML for heavy duty data transmission your bandwidth gets chocked up. Such situations can be handled by some slternative mechanisms like JSON. And here I presume you do the data transfer with API&#039;s and not hand code the JSON fragment before transfer.

Finally it all boils to the case of data transmission and is never the case of readability when choosing a communication medium. Ever read an RMI object?</description>
		<content:encoded><![CDATA[<p>Hi pascal,</p>
<p>JSON is data centric and XML is meta data centric.<br />
JSON and XML are never intended to be read by humans. I understand your concern where you mention the fact if JSON was used in Ant. But tell me, do you ever transfer Ant Build Files to any requesting service?</p>
<p>I want to highlight the case of <b>transfer of data</b> and NOT on configuring meta data. Of course XML is far better but only while configuring meta data. If you use XML for heavy duty data transmission your bandwidth gets chocked up. Such situations can be handled by some slternative mechanisms like JSON. And here I presume you do the data transfer with API&#8217;s and not hand code the JSON fragment before transfer.</p>
<p>Finally it all boils to the case of data transmission and is never the case of readability when choosing a communication medium. Ever read an RMI object?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pascal</title>
		<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/comment-page-1/#comment-199</link>
		<dc:creator>pascal</dc:creator>
		<pubDate>Sun, 22 Apr 2007 09:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/#comment-199</guid>
		<description>If you want human readbility, xml makes sense. Try reading a json file and finding what data ends where can be confusing....

Like you mentioned the use of xml in config files for ant; think if they were in json, we would never find what ended where. 

Anything that can be written in xml can be written in json. Your choice should be decided by who is going to read your file.

If your code is going to be read only by a parser(the java-script eval or any other) json does a nice job. It is easier to parse. It is much more smaller in size. Can save a lot of unwanted data going around. I have noticed that sometimes the metadata doing around in xml is more than the read data transfered... a huge overhead. Definitely not needed if your code will never be seen by a human.</description>
		<content:encoded><![CDATA[<p>If you want human readbility, xml makes sense. Try reading a json file and finding what data ends where can be confusing&#8230;.</p>
<p>Like you mentioned the use of xml in config files for ant; think if they were in json, we would never find what ended where. </p>
<p>Anything that can be written in xml can be written in json. Your choice should be decided by who is going to read your file.</p>
<p>If your code is going to be read only by a parser(the java-script eval or any other) json does a nice job. It is easier to parse. It is much more smaller in size. Can save a lot of unwanted data going around. I have noticed that sometimes the metadata doing around in xml is more than the read data transfered&#8230; a huge overhead. Definitely not needed if your code will never be seen by a human.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Botero-Lowry</title>
		<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/comment-page-1/#comment-123</link>
		<dc:creator>Alexander Botero-Lowry</dc:creator>
		<pubDate>Mon, 02 Apr 2007 06:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/#comment-123</guid>
		<description>Well, a RESTful web service has a number of meanings to a number  of people and a number of things. It is true that HTTP is RESTful in that it is designed to allow for transitions in state. Something like XML-RPC doesn&#039;t really take advantage of this part of HTTP&#039;s design. RESTful apis usually look something like

GET /user - list of users
PUT /user - Add a user
GET /user/1 - info about userid 1
DELETE /user/1 - Delete userid 1
POST /user/1 - Update info for userid 1

Instead of providing method calls for this. There are some great pages explaining why this is better then a SOA style web service or an XML-RPC one. I particularly like this one:
http://duncan-cragg.org/blog/post/getting-data-rest-dialogues/</description>
		<content:encoded><![CDATA[<p>Well, a RESTful web service has a number of meanings to a number  of people and a number of things. It is true that HTTP is RESTful in that it is designed to allow for transitions in state. Something like XML-RPC doesn&#8217;t really take advantage of this part of HTTP&#8217;s design. RESTful apis usually look something like</p>
<p>GET /user &#8211; list of users<br />
PUT /user &#8211; Add a user<br />
GET /user/1 &#8211; info about userid 1<br />
DELETE /user/1 &#8211; Delete userid 1<br />
POST /user/1 &#8211; Update info for userid 1</p>
<p>Instead of providing method calls for this. There are some great pages explaining why this is better then a SOA style web service or an XML-RPC one. I particularly like this one:<br />
<a href="http://duncan-cragg.org/blog/post/getting-data-rest-dialogues/" rel="nofollow">http://duncan-cragg.org/blog/post/getting-data-rest-dialogues/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitinpai</title>
		<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/comment-page-1/#comment-122</link>
		<dc:creator>nitinpai</dc:creator>
		<pubDate>Mon, 02 Apr 2007 06:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/#comment-122</guid>
		<description>I have seen this many time people referring to RESTful services, as you did. I believe that HTTP is a REST based protocol and web services have been implemented on HTTP only. But why is it so that people sometimes refer to the web services as RESTFUL services. Isn&#039;t REST inheritantly applicable to the term &quot;web services&quot;. Or is there something like non RESTful services?</description>
		<content:encoded><![CDATA[<p>I have seen this many time people referring to RESTful services, as you did. I believe that HTTP is a REST based protocol and web services have been implemented on HTTP only. But why is it so that people sometimes refer to the web services as RESTFUL services. Isn&#8217;t REST inheritantly applicable to the term &#8220;web services&#8221;. Or is there something like non RESTful services?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Botero-Lowry</title>
		<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/comment-page-1/#comment-121</link>
		<dc:creator>Alexander Botero-Lowry</dc:creator>
		<pubDate>Mon, 02 Apr 2007 05:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/#comment-121</guid>
		<description>I already use JSON for all of my web application APIs. They accept data encoded with JSON and return a result encoded with JSON. They&#039;re not method call oriented but rather RESTful, but I&#039;ve seen some convincing RPC implementations using JSON as well.</description>
		<content:encoded><![CDATA[<p>I already use JSON for all of my web application APIs. They accept data encoded with JSON and return a result encoded with JSON. They&#8217;re not method call oriented but rather RESTful, but I&#8217;ve seen some convincing RPC implementations using JSON as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitinpai</title>
		<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/comment-page-1/#comment-120</link>
		<dc:creator>nitinpai</dc:creator>
		<pubDate>Mon, 02 Apr 2007 05:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/#comment-120</guid>
		<description>Hi Alexander,
I have read about the XML JSON debate in the link you provided.
I havent tried JSON myself though.

What you say is correct but in my opinion if JSON is an alternative to XML then probably we can use it in web services in future for all its good purposes.</description>
		<content:encoded><![CDATA[<p>Hi Alexander,<br />
I have read about the XML JSON debate in the link you provided.<br />
I havent tried JSON myself though.</p>
<p>What you say is correct but in my opinion if JSON is an alternative to XML then probably we can use it in web services in future for all its good purposes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Botero-Lowry</title>
		<link>http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/comment-page-1/#comment-119</link>
		<dc:creator>Alexander Botero-Lowry</dc:creator>
		<pubDate>Sun, 01 Apr 2007 21:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/04/01/json-web-services-the-xml-json-debate-further-ahead/#comment-119</guid>
		<description>Err... JSON is a subset of Javascript objects (boolean, number, string, array, null, undefined, and object [but only with attributes of the above types]) which is serialized into a string and can be directly evaluate by Javascript. 

Thus, ``Hence it does not require parsing libraries in an application as XML does,&#039;&#039; is not exactly true. In Javascript that&#039;s the case since you can either use eval() directly, but in other languages you need a library to deserialize the JSON input. For example if you try to eval(&#039;true&#039;) in python you&#039;ll get:
    &gt;&gt;&gt; eval(&#039;true&#039;)
    Traceback (most recent call last):
      File &quot;&quot;, line 1, in ?
      File &quot;&quot;, line 0, in ?
    NameError: name &#039;true&#039; is not defined

The key reason to use JSON is that, being an object notation, it was designed for interchanging data types, whereas XML was designed as a structured format for data and has &#039;recently&#039; became a system for doing data-type interchange. These issues are discussed on the JSON website: http://www.json.org/xml.html</description>
		<content:encoded><![CDATA[<p>Err&#8230; JSON is a subset of Javascript objects (boolean, number, string, array, null, undefined, and object [but only with attributes of the above types]) which is serialized into a string and can be directly evaluate by Javascript. </p>
<p>Thus, &#8220;Hence it does not require parsing libraries in an application as XML does,&#8221; is not exactly true. In Javascript that&#8217;s the case since you can either use eval() directly, but in other languages you need a library to deserialize the JSON input. For example if you try to eval(&#8216;true&#8217;) in python you&#8217;ll get:<br />
    &gt;&gt;&gt; eval(&#8216;true&#8217;)<br />
    Traceback (most recent call last):<br />
      File &#8220;&#8221;, line 1, in ?<br />
      File &#8220;&#8221;, line 0, in ?<br />
    NameError: name &#8216;true&#8217; is not defined</p>
<p>The key reason to use JSON is that, being an object notation, it was designed for interchanging data types, whereas XML was designed as a structured format for data and has &#8216;recently&#8217; became a system for doing data-type interchange. These issues are discussed on the JSON website: <a href="http://www.json.org/xml.html" rel="nofollow">http://www.json.org/xml.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
