Javascript Object Notation

Posted on March 9, 2012

0


Javascript Object Notation or JSON is a lightweight interchangeable data format. The notation is completely language independent and uses a notation that is familiar to programmers. The data can either be of type String or type Number. The data format of JSON is either a list or an Object. The Object can be accessed similar to objects in other Object Oriented Programming language and the List format can be accessed similar to an array.

More details on Javascript Object Notation(JSON) is available on the project website at: http://www.json.org/, and examples are available at: http://json.org/example.html.

JSON is being used in the Agricultural Network Project to pass an array of values from a PHP-MYSQL query to a Processing.Js to be visualised via the HTML5 canvas.

Screenshot printing JSON data to Google’s Chrome console:

Advertisements