You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't see it explicitly mentioned in the docs, but I could have swore the module interface used to take a valid file path or a json string. Perhaps not though (I would be willing to attempt a PR with the feature if interested).
Also the README questions why one would ever use this module instead of JSON.parse? I'd say it's worthwhile because this module gives more user friendly error messages for malformed json files than JSON.parse :)
The text was updated successfully, but these errors were encountered:
I didn't see it explicitly mentioned in the docs, but I could have swore the module interface used to take a valid file path or a json string. Perhaps not though (I would be willing to attempt a PR with the feature if interested).
Here is an example
ex.json
app.js
Also the README questions why one would ever use this module instead of JSON.parse? I'd say it's worthwhile because this module gives more user friendly error messages for malformed json files than JSON.parse :)
The text was updated successfully, but these errors were encountered: