<?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.NET 1.1: Converting between XML and JSON</title>
	<atom:link href="http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: lb</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-52977</link>
		<dc:creator>lb</dc:creator>
		<pubDate>Mon, 24 Jul 2006 03:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-52977</guid>
		<description>now if only SQL Server (et al.) had a built-in &quot;ForJSON&quot; that worked the same (only better) than &quot;ForXML&quot;</description>
		<content:encoded><![CDATA[<p>now if only SQL Server (et al.) had a built-in &#8220;ForJSON&#8221; that worked the same (only better) than &#8220;ForXML&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Steen</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-50535</link>
		<dc:creator>Christopher Steen</dc:creator>
		<pubDate>Fri, 21 Jul 2006 04:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-50535</guid>
		<description>&lt;strong&gt;Link Listing - July 20, 2006&lt;/strong&gt;

Announcing Teamprise 1.1 and Vault 3.5 [Via: ] 
Creating Smaller Virtual Machines [Via: ] 
Customizing...</description>
		<content:encoded><![CDATA[<p><strong>Link Listing &#8211; July 20, 2006</strong></p>
<p>Announcing Teamprise 1.1 and Vault 3.5 [Via: ]<br />
Creating Smaller Virtual Machines [Via: ]<br />
Customizing&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Newton-King</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-49517</link>
		<dc:creator>James Newton-King</dc:creator>
		<pubDate>Wed, 19 Jul 2006 21:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-49517</guid>
		<description>Yes that could be a problem. The same issue also applies to single text nodes suddenly having additional content and no longer being a name/value against an element. I was thinking about having an overload to take a schema, which could then place nodes with the potential to have more than one in an array.</description>
		<content:encoded><![CDATA[<p>Yes that could be a problem. The same issue also applies to single text nodes suddenly having additional content and no longer being a name/value against an element. I was thinking about having an overload to take a schema, which could then place nodes with the potential to have more than one in an array.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Willison</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-49099</link>
		<dc:creator>Simon Willison</dc:creator>
		<pubDate>Wed, 19 Jul 2006 08:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-49099</guid>
		<description>James&#039; conversion rules are pretty good, but there&#039;s one edge case you need to stay aware of relating to the multiple-node-array thing. If you have a document which normally returns multiple nodes (say a set of  tags) you might write code against the JSON conversion that expects an array - but this will break if only a single category is present in the XML as the convertor will not know to turn it in to an array. This can be quite a nasty gotcha if you aren&#039;t expecting it.</description>
		<content:encoded><![CDATA[<p>James&#8217; conversion rules are pretty good, but there&#8217;s one edge case you need to stay aware of relating to the multiple-node-array thing. If you have a document which normally returns multiple nodes (say a set of  tags) you might write code against the JSON conversion that expects an array &#8211; but this will break if only a single category is present in the XML as the convertor will not know to turn it in to an array. This can be quite a nasty gotcha if you aren&#8217;t expecting it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Haley</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-48944</link>
		<dc:creator>Jason Haley</dc:creator>
		<pubDate>Wed, 19 Jul 2006 02:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-48944</guid>
		<description>&lt;strong&gt;Interesting Finds: July 18, 2006&lt;/strong&gt;

</description>
		<content:encoded><![CDATA[<p><strong>Interesting Finds: July 18, 2006</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Newton-King</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-48783</link>
		<dc:creator>James Newton-King</dc:creator>
		<pubDate>Tue, 18 Jul 2006 20:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-48783</guid>
		<description>These are the rules I came up with when converting XML to JSON. You can see some in the example above.
-
* Elements remain unchanged.
* Attributes are prefixed with an @.
* Single child text nodes are a value directly against an element, otherwise they are accessed via #text.
* The XML declaration and processing instructions are prefixed with ?.
* Character data, comments, whitespace and significate whitespace nodes are accessed via #cdata-section, #comment, #whitespace and #significate-whitespace respectively.
* Multiple nodes with the same name at the same level are grouped together into an array.
* Empty elements are null.
-
Unfortunately you lose some ordering information when multiple nodes of the same name are grouped together but apart from that the transition back and forth (including namespace data) is pretty good.</description>
		<content:encoded><![CDATA[<p>These are the rules I came up with when converting XML to JSON. You can see some in the example above.<br />
-<br />
* Elements remain unchanged.<br />
* Attributes are prefixed with an @.<br />
* Single child text nodes are a value directly against an element, otherwise they are accessed via #text.<br />
* The XML declaration and processing instructions are prefixed with ?.<br />
* Character data, comments, whitespace and significate whitespace nodes are accessed via #cdata-section, #comment, #whitespace and #significate-whitespace respectively.<br />
* Multiple nodes with the same name at the same level are grouped together into an array.<br />
* Empty elements are null.<br />
-<br />
Unfortunately you lose some ordering information when multiple nodes of the same name are grouped together but apart from that the transition back and forth (including namespace data) is pretty good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Schwarz</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-48664</link>
		<dc:creator>Michael Schwarz</dc:creator>
		<pubDate>Tue, 18 Jul 2006 14:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-48664</guid>
		<description>There is already another one here:

http://weblogs.asp.net/mschwarz/archive/2006/06/19/XML-_2D003E00_-JSON-Serialization.aspx</description>
		<content:encoded><![CDATA[<p>There is already another one here:</p>
<p><a href="http://weblogs.asp.net/mschwarz/archive/2006/06/19/XML-_2D003E00_-JSON-Serialization.aspx" rel="nofollow">http://weblogs.asp.net/mschwarz/archive/2006/06/19/XML-_2D003E00_-JSON-Serialization.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json/comment-page-1#comment-48662</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 18 Jul 2006 14:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/jsonnet-11-converting-between-xml-and-json#comment-48662</guid>
		<description>There is another XML  JSON converter:

http://weblogs.asp.net/mschwarz/archive/2006/06/19/XML-_2D003E00_-JSON-Serialization.aspx</description>
		<content:encoded><![CDATA[<p>There is another XML  JSON converter:</p>
<p><a href="http://weblogs.asp.net/mschwarz/archive/2006/06/19/XML-_2D003E00_-JSON-Serialization.aspx" rel="nofollow">http://weblogs.asp.net/mschwarz/archive/2006/06/19/XML-_2D003E00_-JSON-Serialization.aspx</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

