Yastjson is Yet Another faST JSON, which provide you a high-performaince JSON.parse
method instead of the native function in Node.js.
npm install yastjson
npm test
or
clone github repository
const YJSON = require('yastjson');
let jsonString = '{a:1}';
let obj = YJSON.parse(jsonString);
console.log(obj);
You will get the object, just like using JSON.parse
.