Generous JSON is a JSON parser that supports comments and unquoted strings. You know, for people.
It is a combination of:
- JSOL by Dae Park
- JSON.minify by Kyle Simpson
{
unquotedStrings: "are ok",
// Single line comments are too.
"cat": true,
/*
* And multi-line comments
*/
riesling: "schloss vollrads"
}
Generously parses a JSON document.
Returns the parsed object. Throws an error if the JSON string is invalid.