parse-json
Parse JSON with more helpful errors
Install
Usage
API
parseJson(input, [reviver], [filename])
input
Type: string
reviver
Type: Function
Prescribes how the value originally produced by parsing is transformed, before being returned. See JSON.parse
docs for more.
filename
Type: string
Filename displayed in the error message.
License
MIT © Sindre Sorhus
Last updated