Welcome To Snipplr


Everyone's Recent Snippets Tagged json



Ready for the addition of other country regions as needed.
0 1682 posted 16 years ago by johnandrewsroot
Uses JSON Lite SWC/Class from http://thanksmister.com/?p=40
0 1509 posted 16 years ago by allnatural
This function takes anything which can be dumped into JSON and returns an HTTP response of it, with the right Content-type header.
2 3340 posted 16 years ago by magicrebirth
0 1290 posted 16 years ago by kerpunk
I have not tried this out yet, but I hope it can convert IronPython types to and from json.
0 1361 posted 16 years ago by laurenceosx
With most of the popular web services like Twitter providing their data through APIs, it is always helpful to know how to parse API data which is sent in various formats including JSON, XML etc.
1 1234 posted 16 years ago by paulgrenwood
The code below will loop through the properties in an object and alert a string. myObject is in JSON notation. The "for ( x in y)" construct does not work if the Prototype.js library is included on the page
0 3113 posted 16 years ago by elugardo
This is a great way to save complex objects as cookie values. You can't just json_encode because commas are not legal in cookie values. Remember not to use this for anything too big because cookies have a 4KB limit.
1 1260 posted 16 years ago by segdeha
0 1020 posted 16 years ago by wokon
0 1766 posted 16 years ago by garside
1 1691 posted 16 years ago by michaelfox
A fallback for php's json_encode functionality. What do you think?
1 1268 posted 16 years ago by kirie
0 1346 posted 16 years ago by jonniespratley
0 1419 posted 16 years ago by jonniespratley
2 1716 posted 16 years ago by jonniespratley
I am currently still working on this, and will make changes.
1 1600 posted 16 years ago by jonniespratley
Find out how to retrieve a count of the total times users have bookmarked your web site or web page on Delicious by using JQuery and JSON. The code is pretty simple and can be done in under 18 lines of code.
1 1811 posted 16 years ago by neal_grosskopf
3 1771 posted 16 years ago by troynt
Using JSON-P with jQuery. Note the callback.
0 1556 posted 17 years ago by 1man
Also check out... http://roshanbh.com.np/2008/10/creating-parsing-json-data-php.html
3 1818 posted 17 years ago by jamesming
0 1182 posted 18 years ago by ecavazos
This snippet references the data access class I linked to.
4 1719 posted 18 years ago by ecavazos
SEE http://json.org/ for PHP JSON Libraries. grunt knuckle drag brute force ugly escapes for quotes make a php array a json string Produces trailing commas which some Javascript Librarys can't deal with.* _*NOOB NOTE [a comma is added at the...
2 1898 posted 18 years ago by inkdeep
The simple form that calls the searchYahoo function.
1 1783 posted 18 years ago by 1man
Basic layout for the data contained in a JSON file.(JavaScript Obsect Notation).
1 1364 posted 18 years ago by 1man
This function is near enough the same as parsing XML. The only things that have changed are the sections marked !important.
3 2080 posted 18 years ago by 1man