draft:
configured to parse a parse string from json objects, such as
var str = '{"name":"huangxiaojian","age":"23"}'
result:
JSON.parse(str)
Object
- age: "23"
- name: "huangxiaojian"
- __proto__: Object
Note: Single quotes written on {} In addition, each property name must be enclosed in double quotes, otherwise it will throw an exception.
the stringify () to parse the string from an object, such as
There are a = {a 1, b 2}
result:
JSON.stringify(a)
"{"a":1,"b":2}"
Reproduced in: https: //www.cnblogs.com/jimmy-c/p/4739603.html