safe-json-obj-parse

0.2.0 • Public • Published

safe-json-obj-parse

Safely parse JSON object string

Install

npm i safe-json-obj-parse

Usage

var parse = require('safe-json-obj-parse')
var jsObjStr = '{ name: "someone" }'
var obj = parse(jsObjStr)
console.log(JSON.stringify(obj)) // { "name" : "someone" }

License MIT

Package Sidebar

Install

npm i safe-json-obj-parse

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • yieme