JSON VS XML
![在这里插入图片描述](https://img-blog.csdnimg.cn/2020101322081561.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2p4MzAxMTI=,size_16,color_FFFFFF,t_70#pic_center)
JSON
类型:string, number, boolean, null,不支持undefined。object,array。
JSON对象
stringify(JSON, filter, indentation): 转化为 JSON string对象。filter可以是array或function,[“property1”," property2"], 或者(key, value)=>{return newValue}。
parse(JSON,reviver): 把JSON string转化为object,reviver跟filter类似。