JSON

支持类型

简单值: 字符串,数值,布尔,null. undefined不可以; 对象, 数组

注意点:

  1. 字符串必须使用双引号
  2. 对象的属性名使用双引号

对象与方法

JSON.stringfy(obj): 序列化对象,得到json字符串. JSON.parse()

对象的toJSON()方法.

Subscribe to sanmazi
Receive the latest updates directly to your inbox.
Verification
This entry has been permanently stored onchain and signed by its creator.