JSON is an XML-like language that uses a syntax for storing and exchanging text information.
Compared to XML, it is smaller, faster, and easier to parse.
JSON syntax is a subset of JavaScript object representation syntax. - Data in name/value pairs: e.g. "firstName" : "John" - data separated by commas - curly braces hold objects - square brackets hold arraysCopy the code
JSON consists of the following values:
- Number (integer or floating point) - String (in double quotes) - logical value (true or false) - Array (in square brackets) - Object (in curly brackets) - NULLCopy the code