Brief introduction to json. json (objectnotation) is a lightweight data exchange format, which is easy for people to read and write, and easy for machine parsing and generation. it is based on javascriptprogramminglan... brief introduction to json. json (object notation) is a lightweight data exchange format that is easy for people to read and write, and easy for machine parsing and generation. it is based on javascript programming language, A subset of standard ECMA-262 3rd edition-December 1999, json uses a completely language-independent text format, but also uses a family of c languages like c, c ++, c #, java, javascript, perl, python, etc.). These features make json an ideal data exchange language.
Json is constructed in two structures:
A collection of name/value pairs. in different languages, it is understood as an object, record ), struct, dictionary, hash table, keyed list, or associative array ).
An ordered list of values. In most languages, it is considered as an array ).
Php file code:
Js code: