<?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: Post Complex JavaScript Objects to ASP.NET MVC Controllers</title>
	<atom:link href="http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/</link>
	<description>Making stuff up about web development since last week.</description>
	<lastBuildDate>Wed, 01 Sep 2010 20:57:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: James Fleming</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-795</link>
		<dc:creator>James Fleming</dc:creator>
		<pubDate>Mon, 26 Jul 2010 16:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-795</guid>
		<description>You helped me work though a problem, but I favor a simpler solution than a new plug in - 
I add a string &quot;NameField&quot; to my ViewModel and then adjust the name of my Serializable object to that name: 
Model.NameField = &quot;Family.Children[&quot; + i.ToString() + &quot;]&quot;;

easy peasy!</description>
		<content:encoded><![CDATA[<p>You helped me work though a problem, but I favor a simpler solution than a new plug in &#8211;<br />
I add a string &#8220;NameField&#8221; to my ViewModel and then adjust the name of my Serializable object to that name:<br />
Model.NameField = &#8220;Family.Children[" + i.ToString() + "]&#8220;;</p>
<p>easy peasy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharmendra</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-776</link>
		<dc:creator>Dharmendra</dc:creator>
		<pubDate>Fri, 23 Jul 2010 11:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-776</guid>
		<description>good job, i was looking for a thing like this.
thanks a lot.</description>
		<content:encoded><![CDATA[<p>good job, i was looking for a thing like this.<br />
thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Render Your Model With Client Side jQuery Templates Instead of ASP.NET MVC Partial Views - Nick Riggs, Web Developer</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-471</link>
		<dc:creator>Render Your Model With Client Side jQuery Templates Instead of ASP.NET MVC Partial Views - Nick Riggs, Web Developer</dc:creator>
		<pubDate>Wed, 26 May 2010 12:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-471</guid>
		<description>[...] the JavaScript objects into a post that MVC can bind to the controller, we are going to use the postify.js plugin I wrote back in August. That will make handling the saveButton’s click straight [...]</description>
		<content:encoded><![CDATA[<p>[...] the JavaScript objects into a post that MVC can bind to the controller, we are going to use the postify.js plugin I wrote back in August. That will make handling the saveButton’s click straight [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-201</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 28 Feb 2010 01:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-201</guid>
		<description>Wonderfull, You saved me from a LOT of trouble. Thanks a lot!!!!!</description>
		<content:encoded><![CDATA[<p>Wonderfull, You saved me from a LOT of trouble. Thanks a lot!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ragesh</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-175</link>
		<dc:creator>Ragesh</dc:creator>
		<pubDate>Fri, 18 Sep 2009 16:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-175</guid>
		<description>Hey Nick, this is really good stuff. I&#039;d like to use it in some of my own projects. Would you please consider attaching a license to this code to make this easier?</description>
		<content:encoded><![CDATA[<p>Hey Nick, this is really good stuff. I&#8217;d like to use it in some of my own projects. Would you please consider attaching a license to this code to make this easier?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-169</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 27 Aug 2009 02:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-169</guid>
		<description>Nick, you&#039;re absolutely right.  I&#039;m so used to POSTing JSON strings to ASMX/WCF services, I misunderstood what you were trying to do.  Sorry about that.

Out of curiosity, have you had trouble when supplying the JSON object directly to jQuery in the data parameter?  If the data parameter is an object, jQuery will automatically construct and POST the appropriate serialization of the object.  So far, I haven&#039;t run into a DTO object that jQuery&#039;s auto-serialization didn&#039;t properly hand off to MVC&#039;s model binder.</description>
		<content:encoded><![CDATA[<p>Nick, you&#8217;re absolutely right.  I&#8217;m so used to POSTing JSON strings to ASMX/WCF services, I misunderstood what you were trying to do.  Sorry about that.</p>
<p>Out of curiosity, have you had trouble when supplying the JSON object directly to jQuery in the data parameter?  If the data parameter is an object, jQuery will automatically construct and POST the appropriate serialization of the object.  So far, I haven&#8217;t run into a DTO object that jQuery&#8217;s auto-serialization didn&#8217;t properly hand off to MVC&#8217;s model binder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Riggs</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-168</link>
		<dc:creator>Nick Riggs</dc:creator>
		<pubDate>Wed, 26 Aug 2009 18:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-168</guid>
		<description>@SanjayU: All this method really buys you is integration with MVC’s default model binding behavior. It’s an custom ActionFilter you don’t have to maintain.</description>
		<content:encoded><![CDATA[<p>@SanjayU: All this method really buys you is integration with MVC’s default model binding behavior. It’s an custom ActionFilter you don’t have to maintain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Riggs</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-167</link>
		<dc:creator>Nick Riggs</dc:creator>
		<pubDate>Wed, 26 Aug 2009 18:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-167</guid>
		<description>@Dave: While I like json2.js, this post was meant to address &quot;postifing&quot; a JavaScript object so that it works within ASP.NET MVC&#039;s default model binding. Which is something json2.js doesn&#039;t address.</description>
		<content:encoded><![CDATA[<p>@Dave: While I like json2.js, this post was meant to address &#8220;postifing&#8221; a JavaScript object so that it works within ASP.NET MVC&#8217;s default model binding. Which is something json2.js doesn&#8217;t address.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SanjayU</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-166</link>
		<dc:creator>SanjayU</dc:creator>
		<pubDate>Wed, 26 Aug 2009 17:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-166</guid>
		<description>Definitely a cool alternative approach compared to creating your own ActionFilterAttribute (I wouldn&#039;t even consider the stringify option :) )

I ask this not be be contrarian, but just a question...what does this method buy you that an ActionFilterAttribute does not?  It&#039;d be interesting to understand the performance implications.  It seems the code to do this on the client vs. deserializing JSON on the server is rather similar.</description>
		<content:encoded><![CDATA[<p>Definitely a cool alternative approach compared to creating your own ActionFilterAttribute (I wouldn&#8217;t even consider the stringify option <img src='http://www.nickriggs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>I ask this not be be contrarian, but just a question&#8230;what does this method buy you that an ActionFilterAttribute does not?  It&#8217;d be interesting to understand the performance implications.  It seems the code to do this on the client vs. deserializing JSON on the server is rather similar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://www.nickriggs.com/posts/post-complex-javascript-objects-to-asp-net-mvc-controllers/comment-page-1/#comment-165</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 26 Aug 2009 17:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=106#comment-165</guid>
		<description>You should use json2.js for this instead of rolling a custom function.  Its JSON.stringify() does the same thing.

The bonus when using json2.js is that browser-native JSON functionality in ECMAScript 3.1 mimics Crockford&#039;s API.  So, if your code is using json2.js&#039; JSON.stringify/parse, it will automatically use the faster native routines when the user&#039;s running Firefox 3.5, IE 8, or the newest builds of Chrome/Safari.</description>
		<content:encoded><![CDATA[<p>You should use json2.js for this instead of rolling a custom function.  Its JSON.stringify() does the same thing.</p>
<p>The bonus when using json2.js is that browser-native JSON functionality in ECMAScript 3.1 mimics Crockford&#8217;s API.  So, if your code is using json2.js&#8217; JSON.stringify/parse, it will automatically use the faster native routines when the user&#8217;s running Firefox 3.5, IE 8, or the newest builds of Chrome/Safari.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
