Yet another JSON derivative, aimed to be easy to use for humans as well as for low-level tools.
Main features:
- True subset of ECMAScript.
- Parser-friendly (block and line) comments.
- Comma after last value in data containers. (optional)
- Guaranteed support for UTF-8 BOM.
Related projects:
- JSONv5: A lot more flexible, and thus a lot harder to safely handle with low-level tools like sed.
- strip-json-comments
For examples, see test/felidae.js.
Return a CESON representation of data
as a string.
Return the data represented by the string ceson
if it can be parsed,
or undefined
in case of a SyntaxError. Other errors are re-thrown.
You can modify the behavior by providing a config object opts
.
The supported keys are:
synErr
,othErr
: Modify error handling. Documented at module json-parse-pmb since that's used under the hood.
Try to parse CESON text file filename
, then report to callback
.
(no description yet)
(no description yet)
ISC