json字符串和对象的转换

  JSON.stringify(jsonObj);  ---把JSON对象转为string

 JSON.parse("string"); ---把string转为JSON对象

你可能感兴趣的:(json字符串和对象的转换)