1. JSON is a data interchange format developed by JS. What? is a form of data interaction. The straightforward point is that it's a transit station. Before the data in the background is converted to JSON format, and then converted to each other.
2, there are two forms of JSON, one is a string form, one is an array or object form.
The form of the string: ' {' name ': ' ZJ ', ' age ': 23} ', this is the JSON in the form of a string ...
Array or Object form: {"name": "ZJ", "Age": 23} This is the form of an array------------[{"Name": "ZJ", "Age": 23},{"name": "ZJ", "Age": 23}] This is The form of an array:
3, in fact, there is a point, JSON format, you can also understand the format of JS, this is not a problem, because, JS so write not violate the rules, but we understand as JSON, we can use the relevant API to do the corresponding operation to obtain the results we want.
4, what API?
For example, we often, how to convert a JSON string into a JS array or object, to come, so transform,
Json.parse (JSON), this API will be able to convert the JSON form of a string into a JS form of objects or arrays, see? With this, we can find the value of the relevant property by object ...
What is JSON???