JSON is introduced on https://en.wikipedia.org/wiki/JSON as follows:
JavaScript Object Notation is an open standard file format, and data interchange format, that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value). It is a very common data format, with a diverse range of > applications, such as serving as a replacement for XML in AJAX systems.
The following is an example JSON data structure that (partially) describes a device in the LMC:
|
---|
This object can be translated to the equivalent XML:
|
---|
Exercise:
Define an object with JSON that defines a point with an x = 8
and y = 15
coordinate, as well as a comment field Hello World
.