Can't get < to show up in JSON string
<p>Ok, first hear me out by looking at this url:</p>

<p><a href="http://api.flickr.com/services/feeds/photos_public.gne?format=json" rel="nofollow">http://api.flickr.com/services/feeds/photos_public.gne?format=json</a></p>

<p>Notice how the Description string has non-encoded html in it such as &lt;, >, etc.</p>

<p>Here is how I returned my JSON using ASP.NET 3.5 and C#:</p>

<pre><code>context.Response.ContentType = "text/plain";
context.Response.Charset = Encoding.UTF8.ToString();

int i = 1;

List&lt;Product&gt; products = GetTestProducts();
List&lt;CrImageList&gt; imageList = new List&lt;CrImageList&gt;();

foreach(Product p in products)
{
    string imageTag = HttpUtility.HtmlEncode(string.Format(@"&lt;img src=""{0}"" alt=""""&gt;", ImageUrl(p.Image, false)));

    imageList.Add(new CrImageList{ImageTag = imageTag});
    i++;
}

string jsonString = imageList.ToJSON();
context.Response.Write(jsonString);
</code></pre>

<p>And here is the JSON returned by this code that is called when I hit my .ashx and it calls this code in the method that contains it:</p>

<pre><code>[{"ImageTag":"&amp;lt;img src=&amp;quot;http://www.ourdomain.com/image/540.jpg&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;"},{"ImageTag":"&amp;lt;img src=&amp;quot;http://www.ourdomain.com/image/642.jpg&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;"}]
</code></pre>

<p>Now how can I get the encoded characters to actually show up as html chars in the text string returned by my JSON?</p>

<p>I want &lt; to show &lt; and so on just like Flickr was able to do in their JSON.</p>

<p>If I take out the HtmlEncode:</p>

<p>string.Format(@"", ImageUrl(p.Image, false));</p>

<p>Then I start to get the /u00 in my string:</p>

<pre><code>[{"ImageTag":"\u003cimg src=\"http://www.xxx.com/cat_image/540.jpg\" alt=\"\"\u003e"},
...
</code></pre>

<p>So why doesn't Flickr's JSON return anything but clean html in their description?</p>
