Welcome To Snipplr

Everyone's Recent Snippets Tagged json

« Prev 1 2 3 4
saveToStorage("objectName", {javascript:"object"}); To get the object use getFromStorage("objectName"); If the object does not exist, the function returns new empty object;
0 165 posted 6 years ago by burnandbass
This snippet of code, illustrates how to put, remove or accumulate values in a JSONObject object, use of JSONWriter for putting key/value pairs in "quick and convenient way" as stated by official documentation, and more practical uses for org.json b...
0 270 posted 6 years ago by prgrmmraben
This code demonstrates how to create and parse the JSON data format of using array of PHP. It's a very simple code, that allows you to perform this task.
0 287 posted 7 years ago by apphp-snippets
A sample JSON representation of an Esri Web map based on the [ExportWebMap specifications]( http://resources.arcgis.com/en/help/rest/apiref/exportwebmap_spec.html) The JSON is a parameter to be input into the [Export Web Map task]( http://sample...
0 368 posted 7 years ago by azmi
This can load live map JSON data from Expression Engine Database Locations Entry.
0 269 posted 7 years ago by darith
Makes working with JSON data, in my eyes, easier in Python. Instead of json_data['key']['key']['key'] Do json_data.key.key.key This can also be modified to work the same way with dict types.
1 221 posted 7 years ago by plainwreck
This is a public jsonp api. I use it with jQuery Like This: $.getJSON("http://yourdomain/yourpath/jsonp_api.php?method=getSchema&params=your_db_name&jsoncallback=?", function(data){ //DO SOMETHING WITH THE DATA HERE }...
1 339 posted 8 years ago by halk
Any valid json object will be recursively traversed building a nested unordered list of its properties and their values. This example parses the json entered in the text area into an object that is passed to the json_tree() function. I use the twit...
0 287 posted 8 years ago by halk
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: #...
0 264 posted 8 years ago by crypticsoft
Allows the ability to fill City and State fields in CRM 2011 based on the value of a Zip Code field (and optionally Country). Requires JQuery and JSON Uses Yahoo geocode service Originally written by Bill Caldwell ( http://dynamicscrmdenver...
1 297 posted 8 years ago by evshell18
Make your spreadsheet public to get a key like this: 0AsfENoKj1ir7dE8yR6U0aUtpdTVNM20wRlNJOhZaclG Set it on the script and you're all done.
0 236 posted 8 years ago by Felladrin
SAS code to output in JSON format
1 248 posted 8 years ago by ccw
Writing an PHP array in a javascript file with json_encode.
0 317 posted 8 years ago by Narayon
Way to install jsontools jar. Inspired by http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
0 182 posted 9 years ago by ef
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
0 247 posted 9 years ago by inreflection7
An example method for fetching remote JSON data in Ruby.
2 309 posted 9 years ago by vestimir
If not have access to edit json, setting url possible is: url: 'http://graph.facebook.com/4/?callback=getDatosUsuario'
0 216 posted 9 years ago by nicolaspar
Default adapter saves to DOM.
0 180 posted 9 years ago by stur
0 285 posted 9 years ago by ayaz
0 209 posted 9 years ago by pflangan
I always have trouble preparing JSON to work nicely with as3corelib. Here's an example of what I do whenever the array I'm looking for is nested within more JSON. This really isn't for anyone other than myself.
0 147 posted 9 years ago by chrisaiv
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0 675 posted 9 years ago by adrianparr
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.
0 235 posted 9 years ago by richardmaisano
0 187 posted 9 years ago by camdagr8
The user id was randomized from the original one, and the oauth_token similarly mangled. It is also likely expired anyways. It is just for reference of the structure.
1 166 posted 9 years ago by Maelstrom
1 266 posted 9 years ago by frederichoule
0 205 posted 9 years ago by kashif21
Note: replace "USERNAME" with your own twitter username. This is using cycle plugin with easing which is applied after the tweets are populated.
1 285 posted 9 years ago by crypticsoft
« Prev 1 2 3 4