UNPKG

json-parse

Version:

Curried function that calls `JSON.parse` on provided input returning either the parsed JSON or the specified default value if the data fails to parse as valid JSON instead of throwing a `SyntaxError`.

8 lines (7 loc) 68 B
test test.js src Makefile contributing.md .editorconfig .travis.yml