JSON5 is a superset of JSON that has a more flexible syntax. Use this tag for questions specifically related to the JSON5 standard, and NOT questions that are ONLY about regular JSON.
JSON5 is a superset of JSON that has a more flexible syntax that aligns with ES5 syntax (the version of Javascript most commonly used today). In addition to everything JSON supports, it adds:
- unquoted property keys
- single-quoted, escaped and multi-line strings
- alternate number formats
- comments
- extra whitespace
The JSON5 reference implementation (json5 npm package) provides a JSON5 object that has parse and stringify methods with the same args and semantics as the built-in JSON object.