<?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: jQuery.getJSON()</title>
	<atom:link href="http://api.jquery.com/jQuery.getJSON/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/jQuery.getJSON/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Fri, 19 Mar 2010 22:19:05 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dblrbl</title>
		<link>http://api.jquery.com/jQuery.getJSON/comment-page-1/#comment-1810</link>
		<dc:creator>dblrbl</dc:creator>
		<pubDate>Fri, 19 Mar 2010 22:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=292#comment-1810</guid>
		<description>Try setting server header: &#039;Cache-Control: no-cache, must-revalidate&#039;&lt;br&gt;If you don&#039;t have server access you can trick the browser to not cache the page by appending a timestamp to the end of the URL: &lt;a href=&quot;http://server.com/?json=true&amp;21334342134&quot; rel=&quot;nofollow&quot;&gt;http://server.com/?json=true&amp;21334342134&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Try setting server header: &#39;Cache-Control: no-cache, must-revalidate&#39;<br />If you don&#39;t have server access you can trick the browser to not cache the page by appending a timestamp to the end of the URL: <a href="http://server.com/?json=true&#038;21334342134" rel="nofollow">http://server.com/?json=true&#038;21334342134</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Wright</title>
		<link>http://api.jquery.com/jQuery.getJSON/comment-page-1/#comment-1804</link>
		<dc:creator>Steven Wright</dc:creator>
		<pubDate>Fri, 19 Mar 2010 15:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=292#comment-1804</guid>
		<description>My understanding is that the callback only fires if the request succeeds. But in the following case it actually appears to be firing before the request returns. If dump json to the console it is undefined. If fetch that URL with a browser it returns the json, but it takes a while. Is there a timeout of some sort?&lt;br&gt;&lt;br&gt;    // Get the Subscriber Id&lt;br&gt;    var s = new Date();&lt;br&gt;    $.getJSON(service_url + &#039;get_subscriber_id&#039;, {&lt;br&gt;        mac_address: mac_address,&lt;br&gt;        ts: s.getTime()&lt;br&gt;    }, function(json){&lt;br&gt;        url_params.subscriber_id = json.SubscriberId;&lt;br&gt;        $.get_callerid_history();&lt;br&gt;    });</description>
		<content:encoded><![CDATA[<p>My understanding is that the callback only fires if the request succeeds. But in the following case it actually appears to be firing before the request returns. If dump json to the console it is undefined. If fetch that URL with a browser it returns the json, but it takes a while. Is there a timeout of some sort?</p>
<p>    // Get the Subscriber Id<br />    var s = new Date();<br />    $.getJSON(service_url + &#39;get_subscriber_id&#39;, {<br />        mac_address: mac_address,<br />        ts: s.getTime()<br />    }, function(json){<br />        url_params.subscriber_id = json.SubscriberId;<br />        $.get_callerid_history();<br />    });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dev</title>
		<link>http://api.jquery.com/jQuery.getJSON/comment-page-1/#comment-1803</link>
		<dc:creator>dev</dc:creator>
		<pubDate>Fri, 19 Mar 2010 12:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=292#comment-1803</guid>
		<description>I would like to send an array along when using getJSON, is this possible? Something like this: &lt;br&gt;&lt;br&gt;$.getJSON(&quot;http://localhost/ci_pbbg/universe/tile&quot;, {&#039;mapTiles[]&#039; : mapTiles}, function(data){...&lt;br&gt;&lt;br&gt;The {&#039;mapTiles[]&#039; : mapTiles} bit works when used as data in load, but not in getJSON. Any clue how I can send an array along with this?</description>
		<content:encoded><![CDATA[<p>I would like to send an array along when using getJSON, is this possible? Something like this: </p>
<p>$.getJSON(&#8220;http://localhost/ci_pbbg/universe/tile&#8221;, {&#39;mapTiles[]&#39; : mapTiles}, function(data){&#8230;</p>
<p>The {&#39;mapTiles[]&#39; : mapTiles} bit works when used as data in load, but not in getJSON. Any clue how I can send an array along with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/jQuery.getJSON/comment-page-1/#comment-1777</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Thu, 18 Mar 2010 14:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=292#comment-1777</guid>
		<description>Hi Mike,&lt;br&gt;&lt;br&gt;I just updated the entry. Let me know if it&#039;s satisfactory now. &lt;br&gt;&lt;br&gt;By the way, your version of the history of JSON isn&#039;t really accurate. ;)</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>I just updated the entry. Let me know if it&#39;s satisfactory now. </p>
<p>By the way, your version of the history of JSON isn&#39;t really accurate. <img src='http://api.jquery.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike nelson</title>
		<link>http://api.jquery.com/jQuery.getJSON/comment-page-1/#comment-1759</link>
		<dc:creator>mike nelson</dc:creator>
		<pubDate>Wed, 17 Mar 2010 18:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=292#comment-1759</guid>
		<description>Hi Karl, can you please update the documentation to specifically point out the change between jQuery 1.3.x and 1.4.x which tightens up on the json format. Specifically call out the two major gotchas (1) requiring double quotes instead of single quotes, and (2) even property names need quoting eg { success: true } should now be { &quot;success&quot;: true }. &lt;br&gt;&lt;br&gt;Although some dudes went off and &quot;standardised&quot; the json format the rest of us thought it was exactly what it said on the tin - javascript object notation - ie any valid javascript object syntax would be valid. So I am sure many people have this same problem and as you point out it fails silently so this is going to be a common pitfall.</description>
		<content:encoded><![CDATA[<p>Hi Karl, can you please update the documentation to specifically point out the change between jQuery 1.3.x and 1.4.x which tightens up on the json format. Specifically call out the two major gotchas (1) requiring double quotes instead of single quotes, and (2) even property names need quoting eg { success: true } should now be { &#8220;success&#8221;: true }. </p>
<p>Although some dudes went off and &#8220;standardised&#8221; the json format the rest of us thought it was exactly what it said on the tin &#8211; javascript object notation &#8211; ie any valid javascript object syntax would be valid. So I am sure many people have this same problem and as you point out it fails silently so this is going to be a common pitfall.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keo</title>
		<link>http://api.jquery.com/jQuery.getJSON/comment-page-1/#comment-331</link>
		<dc:creator>Keo</dc:creator>
		<pubDate>Wed, 20 Jan 2010 17:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=292#comment-331</guid>
		<description>For others that might be having trouble with the recent strict changes this  {Animal:&quot;DOG&quot;,Name:&quot;Fido&quot;} must now be {&quot;Animal&quot;:&quot;DOG&quot;,&quot;Name&quot;:&quot;Fido&quot;}. &lt;br&gt;Notice the extra quotes around the field names now that are required.</description>
		<content:encoded><![CDATA[<p>For others that might be having trouble with the recent strict changes this  {Animal:&#8221;DOG&#8221;,Name:&#8221;Fido&#8221;} must now be {&#8220;Animal&#8221;:&#8221;DOG&#8221;,&#8221;Name&#8221;:&#8221;Fido&#8221;}. <br />Notice the extra quotes around the field names now that are required.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
