@witzbould/utils-json-parse

3.0.1 • Public • Published

JsonParse

Wrapper around Json.parse() to catch any errors and return a Promise.
The synchronous version returns an Object with data and error properties.
If the parsing failed the error is set and undefined otherwise.

Package Sidebar

Install

npm i @witzbould/utils-json-parse

Weekly Downloads

4

Version

3.0.1

License

ISC

Unpacked Size

2.98 kB

Total Files

4

Last publish

Collaborators

  • witzbould