0.2.0 • Published 10 years ago

safe-json-obj-parse v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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