1.0.3 • Published 2 years ago
str-to-json v1.0.3
str-to-json
对不规范的json数据进行解析
Fixed the JSON string format
use
const jsonlib = require("str-to-json");
console.log(jsonlib.stringToJSON("{'a':'a','b':1.2,'c':ture}"))
对不规范的json数据进行解析
Fixed the JSON string format
const jsonlib = require("str-to-json");
console.log(jsonlib.stringToJSON("{'a':'a','b':1.2,'c':ture}"))