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`.
2 lines (1 loc) • 12 B
Plain Text