strip-json-comments
{
// Rainbows
"unicorn": /* ❤ */ "cake"
}Install
$ npm install strip-json-commentsUsage
const json = `{
// Rainbows
"unicorn": /* ❤ */ "cake"
}`;
JSON.parse(stripJsonComments(json));
//=> {unicorn: 'cake'}API
stripJsonComments(jsonString, options?)
jsonString
options
Benchmark
Related
Previousstrip-ansiNextJAEGIS-METHOD-v2.0\v2.1.1\JAEGIS\JAEGIS_Core\JAEGIS-METHOD\node_modules\tar-stream\node_modules\read
Last updated