<?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: HTTPHandler with JSON Data</title>
	<atom:link href="http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/</link>
	<description></description>
	<lastBuildDate>Sat, 19 May 2012 20:42:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: cellular on wheels</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-385244</link>
		<dc:creator>cellular on wheels</dc:creator>
		<pubDate>Fri, 11 May 2012 06:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-385244</guid>
		<description>I&#039;m not even close making 1k per lens and day, would probably be good though The hardest part of this whole mission is to uncover programs that you are comfortable promoting.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not even close making 1k per lens and day, would probably be good though The hardest part of this whole mission is to uncover programs that you are comfortable promoting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: how to find gold</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-375890</link>
		<dc:creator>how to find gold</dc:creator>
		<pubDate>Sat, 21 Apr 2012 19:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-375890</guid>
		<description>Jesus Christ theres a great deal of spammy feedback on this web site. Have you actually believed about trying to remove them or installing a wordpress plugin?</description>
		<content:encoded><![CDATA[<p>Jesus Christ theres a great deal of spammy feedback on this web site. Have you actually believed about trying to remove them or installing a wordpress plugin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moise Ndala</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-362513</link>
		<dc:creator>Moise Ndala</dc:creator>
		<pubDate>Wed, 28 Mar 2012 00:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-362513</guid>
		<description>Nicely done. Thanks Ben.
I had to add these two lines for the status for Firefox browser to display properly my response (I am using Visual Studio 2010 Entity Framework 4):
// Put the Header
   Response.Status = &quot;400 Bad Request&quot;;
   Response.StatusCode = 400;

This might help other people having the same issue.</description>
		<content:encoded><![CDATA[<p>Nicely done. Thanks Ben.<br />
I had to add these two lines for the status for Firefox browser to display properly my response (I am using Visual Studio 2010 Entity Framework 4):<br />
// Put the Header<br />
   Response.Status = &#8220;400 Bad Request&#8221;;<br />
   Response.StatusCode = 400;</p>
<p>This might help other people having the same issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brittanie Rehler</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-356915</link>
		<dc:creator>Brittanie Rehler</dc:creator>
		<pubDate>Mon, 19 Mar 2012 05:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-356915</guid>
		<description>I really like what you guys are usually up too. Such clever work and coverage! Keep up the good works guys I&#039;ve included you guys to blogroll.</description>
		<content:encoded><![CDATA[<p>I really like what you guys are usually up too. Such clever work and coverage! Keep up the good works guys I&#8217;ve included you guys to blogroll.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skylar</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-308058</link>
		<dc:creator>Skylar</dc:creator>
		<pubDate>Sat, 17 Dec 2011 00:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-308058</guid>
		<description>Just what i was looking for. A perfect explanation with simple code and a good example. I need more coders like you on the web!</description>
		<content:encoded><![CDATA[<p>Just what i was looking for. A perfect explanation with simple code and a good example. I need more coders like you on the web!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dorian Ockey</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-284108</link>
		<dc:creator>Dorian Ockey</dc:creator>
		<pubDate>Wed, 16 Nov 2011 05:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-284108</guid>
		<description>I really like this blog about full movie online free. A bunch of of blogs on the net are just full of horse maure, but this one is very well written.</description>
		<content:encoded><![CDATA[<p>I really like this blog about full movie online free. A bunch of of blogs on the net are just full of horse maure, but this one is very well written.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinis Cruz</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-250080</link>
		<dc:creator>Dinis Cruz</dc:creator>
		<pubDate>Tue, 12 Jul 2011 13:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-250080</guid>
		<description>Thanks this was very useful

FYI, here is this example with the JSON bit: http://o2platform.wordpress.com/2011/07/12/using-jquery-to-consume-an-asp-net-ashx-from-json-in-two-files/</description>
		<content:encoded><![CDATA[<p>Thanks this was very useful</p>
<p>FYI, here is this example with the JSON bit: <a href="http://o2platform.wordpress.com/2011/07/12/using-jquery-to-consume-an-asp-net-ashx-from-json-in-two-files/" rel="nofollow">http://o2platform.wordpress.co.....two-files/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using jQuery to consume an ASP.NET Ashx from JSON in two files &#171; O2Platform.com for Developers</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-250078</link>
		<dc:creator>Using jQuery to consume an ASP.NET Ashx from JSON in two files &#171; O2Platform.com for Developers</dc:creator>
		<pubDate>Tue, 12 Jul 2011 13:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-250078</guid>
		<description>[...] http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/" rel="nofollow">http://johnnycoder.com/blog/20.....json-data/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-247483</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 17 Jun 2011 09:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-247483</guid>
		<description>Ben,

Thanks for posting this, very useful article - Great to see ASHX being used for its intended purpose.

Cheers!
Simon.</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>Thanks for posting this, very useful article &#8211; Great to see ASHX being used for its intended purpose.</p>
<p>Cheers!<br />
Simon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vim</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-246941</link>
		<dc:creator>Vim</dc:creator>
		<pubDate>Sat, 11 Jun 2011 01:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-246941</guid>
		<description>How can I read the json string returned from custom httphandler in my calling asp.net page?</description>
		<content:encoded><![CDATA[<p>How can I read the json string returned from custom httphandler in my calling asp.net page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-244758</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 18 May 2011 10:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-244758</guid>
		<description>&quot;At first, one may find the comments redundant and unnecessary, but really they are call for help. A code:comment ratio like this usually indicates you really need to focus on what’s happening with the code because if you aren’t paying attention, bad things might happen.&quot;

I don&#039;t understand what you are saying here. The comment:code ratio seems fine and completely irrelevant to the topic you are talking about. Nearly every project/company I have worked with has an aim to have a code:comment ratio like this and it IS good practice.

Please could you clarify what you meant?</description>
		<content:encoded><![CDATA[<p>&#8220;At first, one may find the comments redundant and unnecessary, but really they are call for help. A code:comment ratio like this usually indicates you really need to focus on what’s happening with the code because if you aren’t paying attention, bad things might happen.&#8221;</p>
<p>I don&#8217;t understand what you are saying here. The comment:code ratio seems fine and completely irrelevant to the topic you are talking about. Nearly every project/company I have worked with has an aim to have a code:comment ratio like this and it IS good practice.</p>
<p>Please could you clarify what you meant?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Jiwane</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-224995</link>
		<dc:creator>Ashish Jiwane</dc:creator>
		<pubDate>Thu, 14 Oct 2010 15:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-224995</guid>
		<description>//1.Test web service.
    [WebMethod(CacheDuration = 30, Description = &quot;This is a testing purpose only for dot net developer.&quot;)]
hello friend,
i want to communication between device(mobile) and server side, so that our team is decided to work on web service in dot net.
but the device used json response instead of xml and dot net web service return predefine xml response which is take more time to extract json string from the web service.
Below code help to read the json response directlly without xml tag.

Check the below test sample and let me know your comment.
Thanks 
AshishJ


//1.Test web service.
    [WebMethod(CacheDuration = 30, Description = &quot;This is a testing purpose only for dot net developer.&quot;)]   
 public void TestWebServiceJson()
    {
        String sJSonResponce = &quot;{&#039;GenInfo&#039;:[{&#039;type&#039;:&#039;Response&#039;, &#039;appname&#039;:&#039;iBehavior&#039;} ],&#039;Registration&#039;:[{ &#039;categorylist&#039;:[&#039;catid&#039;:&#039;value&#039;, &#039;category&#039;:&#039;value&#039;, &#039;couponcount&#039;:&#039;value&#039;]} ]}&quot;;
        
        Context.Response.ContentType = &quot;text/plain&quot;;
        Context.Response.Write(sJSonResponce);
    }</description>
		<content:encoded><![CDATA[<p>//1.Test web service.<br />
    [WebMethod(CacheDuration = 30, Description = "This is a testing purpose only for dot net developer.")]<br />
hello friend,<br />
i want to communication between device(mobile) and server side, so that our team is decided to work on web service in dot net.<br />
but the device used json response instead of xml and dot net web service return predefine xml response which is take more time to extract json string from the web service.<br />
Below code help to read the json response directlly without xml tag.</p>
<p>Check the below test sample and let me know your comment.<br />
Thanks<br />
AshishJ</p>
<p>//1.Test web service.<br />
    [WebMethod(CacheDuration = 30, Description = "This is a testing purpose only for dot net developer.")]<br />
 public void TestWebServiceJson()<br />
    {<br />
        String sJSonResponce = &#8220;{&#8216;GenInfo&#8217;:[{'type':'Response', 'appname':'iBehavior'} ],&#8217;Registration&#8217;:[{ 'categorylist':['catid':'value', 'category':'value', 'couponcount':'value']} ]}&#8221;;</p>
<p>        Context.Response.ContentType = &#8220;text/plain&#8221;;<br />
        Context.Response.Write(sJSonResponce);<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Griswold</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-210166</link>
		<dc:creator>Ben Griswold</dc:creator>
		<pubDate>Wed, 30 Sep 2009 03:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-210166</guid>
		<description>Hi Mike. That&#039;s a great question. I think my sample project may not have represented JSON very well. In most cases, one would simply serialize an object(s) to JSON rather than jumping through hoops building the string like I did in the sample. As long as your objects are serializable, I&#039;m not sure there&#039;s much concern with typos. Of course, your solution is one I hadn&#039;t actually considered and should work perfectly well. I&#039;m really glad to provided an alternative approach.  Many thanks.</description>
		<content:encoded><![CDATA[<p>Hi Mike. That&#8217;s a great question. I think my sample project may not have represented JSON very well. In most cases, one would simply serialize an object(s) to JSON rather than jumping through hoops building the string like I did in the sample. As long as your objects are serializable, I&#8217;m not sure there&#8217;s much concern with typos. Of course, your solution is one I hadn&#8217;t actually considered and should work perfectly well. I&#8217;m really glad to provided an alternative approach.  Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike French</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-210164</link>
		<dc:creator>Mike French</dc:creator>
		<pubDate>Wed, 30 Sep 2009 02:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-210164</guid>
		<description>Ben, 
     Is there a benefit of using generic handlers to return JSON instead of using a Webservice with the ScriptService Attribute?

     I&#039;m able to return an array of any object type to a jTemplate. It seems compiling a string of the JSON is opening up more possibilities for typos.

That being said, I am fairly new to using jQuery, so I&#039;m probably overlooking some plain explanation.</description>
		<content:encoded><![CDATA[<p>Ben,<br />
     Is there a benefit of using generic handlers to return JSON instead of using a Webservice with the ScriptService Attribute?</p>
<p>     I&#8217;m able to return an array of any object type to a jTemplate. It seems compiling a string of the JSON is opening up more possibilities for typos.</p>
<p>That being said, I am fairly new to using jQuery, so I&#8217;m probably overlooking some plain explanation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Griswold</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-199921</link>
		<dc:creator>Ben Griswold</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-199921</guid>
		<description>@Paul Allies - Thanks for the comments. I&#039;m surprised, too, that few seem to use the generic handler -- in examples anyway.  IQueryable to Json, eh? I&#039;ll stay on the lookout.  Thanks.</description>
		<content:encoded><![CDATA[<p>@Paul Allies &#8211; Thanks for the comments. I&#8217;m surprised, too, that few seem to use the generic handler &#8212; in examples anyway.  IQueryable to Json, eh? I&#8217;ll stay on the lookout.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Allies</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-199871</link>
		<dc:creator>Paul Allies</dc:creator>
		<pubDate>Mon, 15 Jun 2009 08:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-199871</guid>
		<description>Thanks for the post.

At least there&#039;s one other person is also using the generic handler for ajax requests.  I thought I&#039;m the only one.

I too haven&#039;t picked up any gotchas yet. 

It would be nice though if we had a method of converting IQuerable to Json like in mvc</description>
		<content:encoded><![CDATA[<p>Thanks for the post.</p>
<p>At least there&#8217;s one other person is also using the generic handler for ajax requests.  I thought I&#8217;m the only one.</p>
<p>I too haven&#8217;t picked up any gotchas yet. </p>
<p>It would be nice though if we had a method of converting IQuerable to Json like in mvc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Griswold</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-183399</link>
		<dc:creator>Ben Griswold</dc:creator>
		<pubDate>Tue, 24 Mar 2009 15:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-183399</guid>
		<description>@Jeff Many thanks.</description>
		<content:encoded><![CDATA[<p>@Jeff Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-183370</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 24 Mar 2009 13:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-183370</guid>
		<description>nice post! simple and easy to understand.. :)</description>
		<content:encoded><![CDATA[<p>nice post! simple and easy to understand.. <img src='http://johnnycoder.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Griswold</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-157849</link>
		<dc:creator>Ben Griswold</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-157849</guid>
		<description>Oops. It&#039;s there now. Thanks.</description>
		<content:encoded><![CDATA[<p>Oops. It&#8217;s there now. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik Vig</title>
		<link>http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/comment-page-1/#comment-157844</link>
		<dc:creator>Frederik Vig</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/12/16/httphandler-json-data/#comment-157844</guid>
		<description>Any chance for a link to the code? :)</description>
		<content:encoded><![CDATA[<p>Any chance for a link to the code? <img src='http://johnnycoder.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

