jsonminify
Version:
JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.
13 lines (12 loc) • 337 B
JSON
{ // hoge
"foo": "bar",// this is cool
"bar": [
"baz", "bum", /** aaaa **/"zam" // this is cool
],
/* the rest of this document is just fluff
in case you are interested. */
"something": 10,
/** the rest of this document is just fluff
*in case you are interested. */
"else": 20
} // hoge