React native js string转json
详细参见文档:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
数组,对象转json字符串:
1 |
JSON.stringify(value[, replacer [, space]]); |
json字符串转Object
1 |
JSON.parse(text[, reviver]); |