info[at]theconspiracynyc.com
echodesignlab | bytedissident | wheresyourmachine | projects | theory | tutorials | 
HOME
WORK
CLIENTS
SERVICES
IOO
COMPANY INFO
CONTACT
PRODUCTS
GUIDELINES
 

JSON – Quick Start

March 16, 2011 11:46 pm
Posted By: bytedissident

JSON Tutorial

This is a quick JSON tutorial. JSON is fast becoming the most popular data format for delivering data t6 mobile and web applications an is used by most major API’s including Facebook, Twitter, You Tube and Flickr to name a few.

Arrays: An array in JSON is enclosed in brackets an each item is separated by a comma:

[0,1,2,3,4];

Dictionaries (Key/Value Pairs): Dictionaries are enclosed in curly braces and each Key Value is separated by a comma and each key’s value has a colon between

{"The Key":"The Value","Another Key":"Another Value"}

Example of an Array of Dictionaries:

[{"First Key": "First Values"},
{"Second Key": "Second Value"},
{"Third Key": "Third Value"}]

I highly recommend using this JSON validator http://jsonlint.com