<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>JSON-style dictionary parameters in C#?</title><link>http://weblogs.asp.net/bleroy/archive/2007/09/24/json-style-dictionary-parameters-in-c.aspx</link><description>Eilon has an interesting post about using the new anonymous object initializer syntax in APIs that take dictionaries. The end result looks very much like the JSON parameterized function calls that are very common in many JavaScript frameworks, which shows</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: JSON-style dictionary parameters in C#?</title><link>http://weblogs.asp.net/bleroy/archive/2007/09/24/json-style-dictionary-parameters-in-c.aspx#4194161</link><pubDate>Thu, 27 Sep 2007 04:32:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4194161</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Christian: not quite currying, but passing a hash, yes.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4194161" width="1" height="1"&gt;</description></item><item><title>re: JSON-style dictionary parameters in C#?</title><link>http://weblogs.asp.net/bleroy/archive/2007/09/24/json-style-dictionary-parameters-in-c.aspx#4181039</link><pubDate>Wed, 26 Sep 2007 16:46:09 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4181039</guid><dc:creator>Christian Toivola</dc:creator><author>Christian Toivola</author><description>&lt;p&gt;Are you referring to parameter currying? similar to passing in a hash (more or less)?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4181039" width="1" height="1"&gt;</description></item><item><title>Response.Redirect into a new window (with Extension Methods)</title><link>http://weblogs.asp.net/bleroy/archive/2007/09/24/json-style-dictionary-parameters-in-c.aspx#4143559</link><pubDate>Tue, 25 Sep 2007 18:02:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4143559</guid><dc:creator>Infinities Loop</dc:creator><author>Infinities Loop</author><description>&lt;p&gt;This question comes up from time to time , to time . If you understand how redirects work, then you also&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4143559" width="1" height="1"&gt;</description></item><item><title>re: JSON-style dictionary parameters in C#?</title><link>http://weblogs.asp.net/bleroy/archive/2007/09/24/json-style-dictionary-parameters-in-c.aspx#4121951</link><pubDate>Tue, 25 Sep 2007 00:08:37 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4121951</guid><dc:creator>Joe Chung</dc:creator><author>Joe Chung</author><description>&lt;p&gt;It&amp;#39;s JSON-like syntactically but not as flexible as JSON. &amp;nbsp;You can neatly nest JSON within JSON, for instance. &amp;nbsp;Nesting object-initialized anonymous types, on the other hand, sounds like it could get pretty messy, syntactically speaking.&lt;/p&gt;
&lt;p&gt;For a IDictionary&amp;lt;string, string&amp;gt; parameter, JSON is overkill, but it&amp;#39;s a nice substitute for XML, especially in Web browsers where XML support is spotty and inconsistent *cough* where&amp;#39;s E4X, IE? *cough*.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just waiting for some standards body to come along and ruin the party for us all by coming up with some JSON-Schema specification. ;)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4121951" width="1" height="1"&gt;</description></item></channel></rss>