命名空间 json
Defined in: jx.json.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
json.parse(text)
把给定json字符串转换成对象
|
<static> |
json.stringify(value)
把给定object转换成json字符串
|
方法详解
<static>
{Object}
json.parse(text)
- 功能:
- 把给定json字符串转换成对象
- 参数:
-
- {String} text
- 返回:
- {Object}
<static>
{String}
json.stringify(value)
- 功能:
- 把给定object转换成json字符串
- 参数:
-
- {Object} value
- 返回:
- {String}