Json

From wikinotes

A subset of javascript used for serializing data.

Documentation

home https://www.json.org/json-en.html

Example

{

   "MyCategory":{
   	"a":["apple","orange","banana"],
   	"b":["peach","mango"]						// json requires that the last list-element does not have a comma
   },

   "MyNull"        : null,
   "boolean_true"  : true,
   "boolean_false" : false

}

Datatypes

JSON natively supports 6x datatypes:

// simple datatypes
{
	"string"  = "my string",
	"number"  = 9999,
	"boolean" = true,
	"null"    = null
}

// compound datatypes
{
	"object" = { "a":1, "b":1 },  // a dictionary
	"array"  = [ "a","b","c" ]
}