jsonfy

Parse json like string to json object

Usage no npm install needed!

<script type="module">
  import jsonfy from 'https://cdn.skypack.dev/jsonfy';
</script>

README

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.