<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Java - Use JSON for Data Transfer</title>
	<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/</link>
	<description>New SMS Library at http://twit88.com/platform/projects/show/messagingtoolkit !</description>
	<pubDate>Wed, 17 Mar 2010 23:25:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: barrier</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-118978</link>
		<dc:creator>barrier</dc:creator>
		<pubDate>Wed, 18 Nov 2009 09:33:22 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-118978</guid>
		<description>Json has some disadvantages over XML
1. No unicode support
2. No comment support
3. data type support is inadequate</description>
		<content:encoded><![CDATA[<p>Json has some disadvantages over XML<br />
1. No unicode support<br />
2. No comment support<br />
3. data type support is inadequate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-548</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 09 Nov 2007 09:28:44 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-548</guid>
		<description>Finally a decent example of how to use this API! Saved me a lot of confusion... thanks.</description>
		<content:encoded><![CDATA[<p>Finally a decent example of how to use this API! Saved me a lot of confusion&#8230; thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Use JSON to Transfer Data between .NET and Java Web Services &#124; twit88.com</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-236</link>
		<dc:creator>Use JSON to Transfer Data between .NET and Java Web Services &#124; twit88.com</dc:creator>
		<pubDate>Fri, 26 Oct 2007 14:54:54 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-236</guid>
		<description>[...] my previous post, Java - Use JSON for Data TransferI showed you how I passed an array of objects between my Java processes. Here I am going to show you [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] my previous post, Java - Use JSON for Data TransferI showed you how I passed an array of objects between my Java processes. Here I am going to show you [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: napyfab:blog&#187; Blog Archive &#187; links for 2007-10-24</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-216</link>
		<dc:creator>napyfab:blog&#187; Blog Archive &#187; links for 2007-10-24</dc:creator>
		<pubDate>Wed, 24 Oct 2007 23:40:52 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-216</guid>
		<description>[...] Java - Use JSON for Data Transfer &#124; twit88.com (tags: json java programming data transfer development) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Java - Use JSON for Data Transfer | twit88.com (tags: json java programming data transfer development) [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-205</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 24 Oct 2007 03:45:41 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-205</guid>
		<description>YAML works with Ruby, Java, C++, Python, PHP, etc.

http://yaml.org/</description>
		<content:encoded><![CDATA[<p>YAML works with Ruby, Java, C++, Python, PHP, etc.</p>
<p><a href="http://yaml.org/" rel="nofollow">http://yaml.org/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Transferência de dados em Java com JSON &#124; Tecnologia da Informação - Desenvolvimento e Educação</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-199</link>
		<dc:creator>Transferência de dados em Java com JSON &#124; Tecnologia da Informação - Desenvolvimento e Educação</dc:creator>
		<pubDate>Tue, 23 Oct 2007 18:01:37 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-199</guid>
		<description>[...] twit88 publicou um artigo explicando como utilizar JSON e Java para transferir dados. Trata-se de uma explicação que pode ser utilizada para envio de mensagens com serialização de [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] twit88 publicou um artigo explicando como utilizar JSON e Java para transferir dados. Trata-se de uma explicação que pode ser utilizada para envio de mensagens com serialização de [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pragma</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-198</link>
		<dc:creator>Pragma</dc:creator>
		<pubDate>Tue, 23 Oct 2007 17:28:38 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-198</guid>
		<description>Nice post.  I've done some work in this area and would like to contribute the following tidbits:

While JSON is fantastic at low-overhead data exchange, it does come with some subtle drawbacks.  In short, you will more than likely see an impedance-mismatch between JSON and Java since JSON assumes a loosely-typed environment (read: no built-in type info), whereas Java is much less forgiving.

(using JSONObject from http://www.json.org/java/index.html)

JSONObject obj = new JSONObject("{'foo':69.0,'bar':'42'}");
int x = obj.get("foo"); //fail: returns Double
int y = obj.get("bar"); //fail: returns String

Typically this isn't a problem with explicit serialization.  If you plan on using reflection to serialize Java objects, you'll need to perform some type-checking, and call the appropriate getXYZ() methods rather than blindly get()-ing your data.

Another small issue is how JSON has no provision for binary data.  Much like with XML, the best solution is to base64 encode any such data since JSON typically is delivered as ASCII or UTF-8.</description>
		<content:encoded><![CDATA[<p>Nice post.  I&#8217;ve done some work in this area and would like to contribute the following tidbits:</p>
<p>While JSON is fantastic at low-overhead data exchange, it does come with some subtle drawbacks.  In short, you will more than likely see an impedance-mismatch between JSON and Java since JSON assumes a loosely-typed environment (read: no built-in type info), whereas Java is much less forgiving.</p>
<p>(using JSONObject from <a href="http://www.json.org/java/index.html" rel="nofollow">http://www.json.org/java/index.html</a>)</p>
<p>JSONObject obj = new JSONObject(&#8221;{&#8217;foo&#8217;:69.0,&#8217;bar&#8217;:'42&#8242;}&#8221;);<br />
int x = obj.get(&#8221;foo&#8221;); //fail: returns Double<br />
int y = obj.get(&#8221;bar&#8221;); //fail: returns String</p>
<p>Typically this isn&#8217;t a problem with explicit serialization.  If you plan on using reflection to serialize Java objects, you&#8217;ll need to perform some type-checking, and call the appropriate getXYZ() methods rather than blindly get()-ing your data.</p>
<p>Another small issue is how JSON has no provision for binary data.  Much like with XML, the best solution is to base64 encode any such data since JSON typically is delivered as ASCII or UTF-8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: russ</title>
		<link>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-196</link>
		<dc:creator>russ</dc:creator>
		<pubDate>Tue, 23 Oct 2007 16:36:36 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/10/22/java-use-json-for-data-transfer/#comment-196</guid>
		<description>I must say that after using XML, and then json for transfer between client and server (not Java, but JavaScript) I honestly can't believe we have AJAX at all. It ought to be AJAJ!

Nice summary and introduction, keep up the good work.</description>
		<content:encoded><![CDATA[<p>I must say that after using XML, and then json for transfer between client and server (not Java, but JavaScript) I honestly can&#8217;t believe we have AJAX at all. It ought to be AJAJ!</p>
<p>Nice summary and introduction, keep up the good work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
