Welcome To Snipplr


Everyone's Recent Snippets Tagged json



« Prev 1 2 3 4
  1. FAV

    Add/Get objects From/To LocalStorage

    saveToStorage("objectName", {javascript:"object"}); To get the object use getFromStorage("objectName"); If the object does not exist, the function returns new empty object;
    JavaScript 5 views posted 5 years ago by burnandbass
  2. FAV

    Some uses of JSONObject, JSONWriter and JSONTokener classes of org.json

    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...
    Java 6 views posted 5 years ago by prgrmmraben
  3. FAV

    Creating and Parsing JSON Data in PHP

    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.
    PHP 9 views posted 6 years ago by apphp-snippets
  4. FAV

    Sample JSON representation of an Esri Web Map for Export Web Map task

    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...
    Other 9 views posted 6 years ago by azmi
  5. FAV

    Expression Engine JSON (Webpage Template) Code

    This can load live map JSON data from Expression Engine Database Locations Entry.
    Other 9 views posted 6 years ago by darith
  6. FAV

    Objectjson - JSON to nested object.

    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.
    Python saved by 2 people 8 views posted 6 years ago by plainwreck
  7. FAV

    JSONP Public API with jQuery getJSON (callback) (MySql)

    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 }...
    PHP saved by 4 people 12 views posted 7 years ago by halk
  8. FAV

    JSON Tree(1 function 15 lines)Nested Ul from single or multidimensional json object

    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...
    JavaScript 15 views posted 7 years ago by halk
  9. FAV

    REST API products and categories from pinnacleCart

    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: #...
    PHP 10 views posted 7 years ago by crypticsoft
  10. FAV

    CRM 2011 Zip Code Lookup

    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...
    JavaScript saved by 2 people 12 views posted 7 years ago by evshell18
  11. FAV

    Listing Google Spreadsheet answers with PHP (Parsing JSON)

    Make your spreadsheet public to get a key like this: 0AsfENoKj1ir7dE8yR6U0aUtpdTVNM20wRlNJOhZaclG Set it on the script and you're all done.
    PHP saved by 2 people 5 views posted 7 years ago by Felladrin
  12. FAV

    [SAS] JSON output

    SAS code to output in JSON format
    SAS saved by 1 person 6 views posted 7 years ago by ccw
  13. FAV

    Pass PHP array parameter to Javascript Function

    Writing an PHP array in a javascript file with json_encode.
    PHP 10 views posted 7 years ago by Narayon
  14. FAV

    Adding jstontools jar to Maven repository

    Way to install jsontools jar. Inspired by http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
    Bash 1 views posted 7 years ago by ef
  15. FAV

    JSON with a PHP proxy

    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
    PHP 7 views posted 8 years ago by inreflection7
  16. FAV

    Fetch remote JSON in Ruby

    An example method for fetching remote JSON data in Ruby.
    Ruby saved by 8 people 8 views posted 8 years ago by vestimir
  17. FAV

    JS data from json - CrossDomian

    If not have access to edit json, setting url possible is: url: 'http://graph.facebook.com/4/?callback=getDatosUsuario'
    PHP 4 views posted 8 years ago by nicolaspar
  18. FAV

    Lawnchair persistant localstorage example JSON

    Default adapter saves to DOM.
    JavaScript 3 views posted 8 years ago by stur
  19. FAV

    Json to string. if native JSON.stringify not exists.

    JavaScript 3 views posted 8 years ago by oozolii
  20. FAV

    HTML JSON PAGINATION JQUERY

    HTML PAGED LIST , USING AJAX, JSON AND DATABASE
    HTML 4 views posted 8 years ago by ayaz
  21. FAV

    json date format regex

    JavaScript 3 views posted 8 years ago by pflangan
  22. FAV

    AS3 JSON String Parsing

    ActionScript 3 7 views posted 8 years ago by ImJustRestless
  23. FAV

    AS3: JSON.decode

    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.
    ActionScript 3 4 views posted 8 years ago by chrisaiv
  24. FAV

    AS3 Load and access JSON data example

    For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
    ActionScript 3 22 views posted 8 years ago by adrianparr
  25. FAV

    PHP + JSON + Twitter API

    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.
    PHP 12 views posted 8 years ago by richardmaisano
  26. FAV

    Actionscript JSON

    ActionScript 3 4 views posted 8 years ago by camdagr8
  27. FAV

    Signed_Request decoded JSON (Facebook)

    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.
    JavaScript saved by 2 people 4 views posted 8 years ago by Maelstrom
  28. FAV

    Create a Basic Web Service Using PHP, MySQL, XML, and JSON

    PHP saved by 8 people 18 views posted 8 years ago by mb2o
  29. FAV

    Object to Array

    PHP saved by 4 people 2 views posted 8 years ago by frederichoule
  30. FAV

    Json VS XML syntax

    XML 4 views posted 8 years ago by kashif21
« Prev 1 2 3 4