2.3.1 • Published 5 years ago

simple-json-parser v2.3.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

simple-json-parser

Parse JSON without SyntaxError

Install

$ npm install simple-json-parser

Usage

import jsonParse from "simple-json-parser";

const obj1 = jsonParse('{"foo":"bar"}');
/* 
{
    "foo: "bar"
}
*/

const obj2 = jsonParse('foo');
/*
    {}
*/

const obj3 = jsonParse('123');
/*
    {}
*/

const obj4 = jsonParse(123);
/*
    {}
*/
2.3.1

5 years ago

2.3.0

5 years ago

2.2.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago