Parse input as JSON, optionally asserting the parsed value's type with assertionFn.
input
assertionFn
jsonParse('{"a":1}'); // { a: 1 } Copy
jsonParse('{"a":1}'); // { a: 1 }
Optional
Parse
inputas JSON, optionally asserting the parsed value's type withassertionFn.Example