Yastjson is Yet Another faST JSON, which provide you a second choice of 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
.
Copyright (c) 2020-present, Yingda (Sugar) Zhu