safe-json-obj-parse
Safely parse JSON object string
Last updated 5 years ago by yieme .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install safe-json-obj-parse 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

3 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |