<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/json</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 01:29:40 GMT</pubDate>
<item>
<title>(PHP) JSONP Public API with jQuery getJSON (callback) (MySql) - halk</title>
<link>http://snipplr.com/view/68583/jsonp-public-api-with-jquery-getjson-callback-mysql/</link>
<description><![CDATA[ <p>This is a public jsonp api. I use it with jQuery Like This:
$.getJSON("http://yourdomain/yourpath/jsonp_api.php?method=getSchema&amp;params=your_db_name&amp;jsoncallback=?",
        function(data){
         //DO SOMETHING WITH THE DATA HERE
        }
    );</p> ]]></description>
<pubDate>Fri, 16 Nov 2012 09:08:46 GMT</pubDate>
<guid>http://snipplr.com/view/68583/jsonp-public-api-with-jquery-getjson-callback-mysql/</guid>
</item>
<item>
<title>(PHP) JSON Responder - evinweissenberg</title>
<link>http://snipplr.com/view/66800/json-responder/</link>
<description><![CDATA[ <p>This response in JSON format with an ability to indicate type,code, message and if there is data, with data.</p> ]]></description>
<pubDate>Sat, 18 Aug 2012 07:51:54 GMT</pubDate>
<guid>http://snipplr.com/view/66800/json-responder/</guid>
</item>
<item>
<title>(PHP) REST API products and categories from pinnacleCart - crypticsoft</title>
<link>http://snipplr.com/view/66798/rest-api-products-and-categories-from-pinnaclecart/</link>
<description><![CDATA[ <p>This is a useful class which utilizes Phil Sturgeon's helpful restclient (http://getsparks.org/packages/restclient/versions/HEAD/show). Reference the URL attached for PinnacleCart API docs.

Example request URLs to get products and categories:

# Get product by product_id (XX##) or keyword(s)
~/products/getProducts/search/10/oj70/oj77/oj75

# Recently added products by CategoryID (/cID/batchSize)
~/products/getProductsByCategory/92/10

# Recently added product images by CategoryID (/cID/batchSize) 
-- This was to remove the 'Description' key/value for slide shows
~/products/getProductImagesByCategory/92/10

# Recently added products by limit
~/products/getRecentlyAdded/20

# Get all categories
~/products/getCategories</p> ]]></description>
<pubDate>Sat, 18 Aug 2012 02:50:58 GMT</pubDate>
<guid>http://snipplr.com/view/66798/rest-api-products-and-categories-from-pinnaclecart/</guid>
</item>
<item>
<title>(PHP) Listing Google Spreadsheet answers with PHP (Parsing JSON) - Felladrin</title>
<link>http://snipplr.com/view/64777/listing-google-spreadsheet-answers-with-php-parsing-json/</link>
<description><![CDATA[ <p>Make your spreadsheet public to get a key like this: 0AsfENoKj1ir7dE8yR6U0aUtpdTVNM20wRlNJOhZaclG

Set it on the script and you're all done.</p> ]]></description>
<pubDate>Wed, 02 May 2012 09:07:04 GMT</pubDate>
<guid>http://snipplr.com/view/64777/listing-google-spreadsheet-answers-with-php-parsing-json/</guid>
</item>
<item>
<title>(PHP) Pass PHP array parameter to Javascript Function - Narayon</title>
<link>http://snipplr.com/view/63829/pass-php-array-parameter-to-javascript-function/</link>
<description><![CDATA[ <p>Writing an PHP array in a javascript file with json_encode.</p> ]]></description>
<pubDate>Sat, 10 Mar 2012 03:17:29 GMT</pubDate>
<guid>http://snipplr.com/view/63829/pass-php-array-parameter-to-javascript-function/</guid>
</item>
<item>
<title>(PHP) is_json - mladoux</title>
<link>http://snipplr.com/view/62235/isjson/</link>
<description><![CDATA[ <p>function to test whether or not a string is JSON encoded</p> ]]></description>
<pubDate>Tue, 03 Jan 2012 13:19:43 GMT</pubDate>
<guid>http://snipplr.com/view/62235/isjson/</guid>
</item>
<item>
<title>(PHP) JSON with a PHP proxy - inreflection7</title>
<link>http://snipplr.com/view/61836/json-with-a-php-proxy/</link>
<description><![CDATA[ <p>Use PHP to get JSON

1) set the PHP to the URL of the JSON
2) echo a variable with the loaded data
3) use a request via jQuery to get the variable from PHP</p> ]]></description>
<pubDate>Tue, 13 Dec 2011 08:28:13 GMT</pubDate>
<guid>http://snipplr.com/view/61836/json-with-a-php-proxy/</guid>
</item>
<item>
<title>(PHP) JS data from json - CrossDomian - nicolaspar</title>
<link>http://snipplr.com/view/60895/js-data-from-json--crossdomian/</link>
<description><![CDATA[ <p>If not have access to edit json, setting url possible is:
url: 'http://graph.facebook.com/4/?callback=getDatosUsuario'</p> ]]></description>
<pubDate>Thu, 17 Nov 2011 01:32:04 GMT</pubDate>
<guid>http://snipplr.com/view/60895/js-data-from-json--crossdomian/</guid>
</item>
<item>
<title>(PHP) pretty_json - camdagr8</title>
<link>http://snipplr.com/view/60559/prettyjson/</link>
<description><![CDATA[ <p>Here's a function to pretty up json encoded data.</p> ]]></description>
<pubDate>Sat, 05 Nov 2011 06:38:19 GMT</pubDate>
<guid>http://snipplr.com/view/60559/prettyjson/</guid>
</item>
<item>
<title>(PHP) PHP + JSON + Twitter API - richardmaisano</title>
<link>http://snipplr.com/view/54710/php--json--twitter-api/</link>
<description><![CDATA[ <p>Nothing revolutionary, just a simple implementation.

A reworking from Brian Cray's source code:
http://briancray.com/2009/08/21/tweeted-links-twitter-api-php-cache/

Note: requires creating a cache file, '/caches/twitter', relative to source.</p> ]]></description>
<pubDate>Wed, 01 Jun 2011 14:59:48 GMT</pubDate>
<guid>http://snipplr.com/view/54710/php--json--twitter-api/</guid>
</item>
<item>
<title>(PHP) Create a Basic Web Service Using PHP, MySQL, XML, and JSON - mb2o</title>
<link>http://snipplr.com/view/52131/create-a-basic-web-service-using-php-mysql-xml-and-json/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 15 Apr 2011 17:00:40 GMT</pubDate>
<guid>http://snipplr.com/view/52131/create-a-basic-web-service-using-php-mysql-xml-and-json/</guid>
</item>
<item>
<title>(PHP) XML to JSON (Simple) Parser - Pazuzu</title>
<link>http://snipplr.com/view/51637/xml-to-json-simple-parser/</link>
<description><![CDATA[ <p>The unicode decoding functions were adapted from the Decoder.php source from the Zend Framework.</p> ]]></description>
<pubDate>Wed, 06 Apr 2011 10:00:15 GMT</pubDate>
<guid>http://snipplr.com/view/51637/xml-to-json-simple-parser/</guid>
</item>
<item>
<title>(PHP) Object to Array - frederichoule</title>
<link>http://snipplr.com/view/51420/object-to-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Apr 2011 13:30:51 GMT</pubDate>
<guid>http://snipplr.com/view/51420/object-to-array/</guid>
</item>
<item>
<title>(PHP) PHP JSON Headers - simondiercks</title>
<link>http://snipplr.com/view/48337/php-json-headers/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 03 Feb 2011 18:39:37 GMT</pubDate>
<guid>http://snipplr.com/view/48337/php-json-headers/</guid>
</item>
<item>
<title>(PHP) Example of a JSON encoded repsonse - dropthenerd</title>
<link>http://snipplr.com/view/48263/example-of-a-json-encoded-repsonse/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Feb 2011 11:04:10 GMT</pubDate>
<guid>http://snipplr.com/view/48263/example-of-a-json-encoded-repsonse/</guid>
</item>
<item>
<title>(PHP) mysql2json - Pjotor</title>
<link>http://snipplr.com/view/48012/mysql2json/</link>
<description><![CDATA[ <p>Converts a MySQL result set to a JSON object, and ensures that the data is UTF-8 encoded.   
Usage:   
$conv = new mysql2json();   
$JSONresult = $conv->getJSON($result);   
   
Depends on an open link to the database.</p> ]]></description>
<pubDate>Fri, 28 Jan 2011 00:19:57 GMT</pubDate>
<guid>http://snipplr.com/view/48012/mysql2json/</guid>
</item>
<item>
<title>(PHP) Check if a string it's json encoded using regular expressions - jatubio</title>
<link>http://snipplr.com/view/47562/check-if-a-string-its-json-encoded-using-regular-expressions/</link>
<description><![CDATA[ <p>Check if a string it's json encoded using regular expressions

Thanks to Jens Anders Bakke for his mootools code published in webfreak.no

http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/</p> ]]></description>
<pubDate>Thu, 20 Jan 2011 05:20:02 GMT</pubDate>
<guid>http://snipplr.com/view/47562/check-if-a-string-its-json-encoded-using-regular-expressions/</guid>
</item>
<item>
<title>(PHP) PHP Array into Javascript Array with JSON - whak</title>
<link>http://snipplr.com/view/45626/php-array-into-javascript-array-with-json/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 11 Dec 2010 17:52:21 GMT</pubDate>
<guid>http://snipplr.com/view/45626/php-array-into-javascript-array-with-json/</guid>
</item>
<item>
<title>(PHP) Processing json POST request with PHP - wnasich</title>
<link>http://snipplr.com/view/44820/processing-json-post-request-with-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Nov 2010 03:42:28 GMT</pubDate>
<guid>http://snipplr.com/view/44820/processing-json-post-request-with-php/</guid>
</item>
<item>
<title>(PHP) Store array in cookie - liamchapman</title>
<link>http://snipplr.com/view/43435/store-array-in-cookie/</link>
<description><![CDATA[ <p>Simple function to store an array in a cookie. Uses JSON. 

To pull data out of cookie use 'json_decode()'. It can then be looped etc.</p> ]]></description>
<pubDate>Tue, 02 Nov 2010 21:04:47 GMT</pubDate>
<guid>http://snipplr.com/view/43435/store-array-in-cookie/</guid>
</item>
</channel>
</rss>