jsonfy

0.1.0 • Public • Published

jsonfy

NPM version Build Status Dependency Status Coverage Status

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.

Package Sidebar

Install

npm i jsonfy

Weekly Downloads

17

Version

0.1.0

License

MIT

Last publish

Collaborators

  • qiu8310