<?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: Introduction to JSON (JavaScript Object Notation)</title> <atom:link href="http://www.seangw.com/wordpress/2009/02/introduction-to-json-javascript-object-notation/feed/" rel="self" type="application/rss+xml" /><link>http://www.seangw.com/wordpress/2009/02/introduction-to-json-javascript-object-notation/</link> <description>Flash, HTML, Actionscript, XML, Javascript, AJAX, CSS, iPhone and other geeky topics</description> <lastBuildDate>Sat, 04 Feb 2012 19:48:19 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Peter</title><link>http://www.seangw.com/wordpress/2009/02/introduction-to-json-javascript-object-notation/comment-page-1/#comment-124</link> <dc:creator>Peter</dc:creator> <pubDate>Thu, 05 Mar 2009 11:07:31 +0000</pubDate> <guid isPermaLink="false">http://www.seangw.com/wordpress/?p=379#comment-124</guid> <description>Crockford&#039;s JSON parser will properly parse (not eval!) the JSON string. However, at the time of writing this, jQuery still uses eval [&lt;code&gt;if ( type == &quot;json&quot; ) data = window[&quot;eval&quot;](&quot;(&quot; + data + &quot;)&quot;);&lt;/code&gt;].</description> <content:encoded><![CDATA[<p>Crockford&#8217;s JSON parser will properly parse (not eval!) the JSON string. However, at the time of writing this, jQuery still uses eval [<code>if ( type == "json" ) data = window["eval"](&#8220;(&#8221; + data + &#8220;)&#8221;);</code>].</p> ]]></content:encoded> </item> <item><title>By: seangw</title><link>http://www.seangw.com/wordpress/2009/02/introduction-to-json-javascript-object-notation/comment-page-1/#comment-121</link> <dc:creator>seangw</dc:creator> <pubDate>Mon, 02 Mar 2009 21:17:58 +0000</pubDate> <guid isPermaLink="false">http://www.seangw.com/wordpress/?p=379#comment-121</guid> <description>Joshua is correct, you should not directly use &quot;eval(code)&quot; in JS as it is a high security risk.  Use an existing JSON parser (jQuery for example).If the source is absolutely secure (no user entered data, etc.) you can use &quot;eval&quot;, it is very fast doing this directly without parsing. Just know, that any non-trusted content makes that a high risk method.</description> <content:encoded><![CDATA[<p>Joshua is correct, you should not directly use &#8220;eval(code)&#8221; in JS as it is a high security risk.  Use an existing JSON parser (jQuery for example).</p><p>If the source is absolutely secure (no user entered data, etc.) you can use &#8220;eval&#8221;, it is very fast doing this directly without parsing. Just know, that any non-trusted content makes that a high risk method.</p> ]]></content:encoded> </item> <item><title>By: Joshua Kugler</title><link>http://www.seangw.com/wordpress/2009/02/introduction-to-json-javascript-object-notation/comment-page-1/#comment-120</link> <dc:creator>Joshua Kugler</dc:creator> <pubDate>Mon, 02 Mar 2009 21:05:07 +0000</pubDate> <guid isPermaLink="false">http://www.seangw.com/wordpress/?p=379#comment-120</guid> <description>As a rule, do NOT use eval(code) to parse your JSON data.  If you ever have user provided content inside JSON encoded data, you could execute malicious javascript in that user&#039;s browser.  Taken a look at the JSON parsers at http://json.org/</description> <content:encoded><![CDATA[<p>As a rule, do NOT use eval(code) to parse your JSON data.  If you ever have user provided content inside JSON encoded data, you could execute malicious javascript in that user&#8217;s browser.  Taken a look at the JSON parsers at <a href="http://json.org/">http://json.org/</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 3/7 queries in 0.003 seconds using disk: basic
Object Caching 446/446 objects using disk: basic
Content Delivery Network via cdn.seangw.com

Served from: www.seangw.com @ 2012-02-09 01:29:54 -->
