Make js object with given string
Install with npm:
$ npm install --save get-string-object
const getObject = require('get-string-object');
getObject(); // {}
getObject('{"foo":"bar"}'); // {"foo":"bar"}
getObject('{"foo":"bar}'); // {}
$ node test.js
Released under the MIT License.