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}"))
npm i str-to-json
6
1.0.3
ISC
2.91 kB
4