jsonfy
v0.1.0
Published
Parse json like string to json object
Downloads
62
Readme
jsonfy
Parse json like string to json object
Install
$ npm install --save jsonfy
Usage
var jsonfy = require('jsonfy');
jsonfy('{str: abc, bool: true, number: 0.24, array: [1,2], emptyObj: {}}');
// return:
//{
// str: 'abc',
// bool: true,
// number: 0.24,
// array: [1, 2],
// emptyObj: {}
//}
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp.
License
Copyright (c) 2015 Zhonglei Qiu. Licensed under the MIT license.