GO library for strip JSON comments from input.
{
// this is a comment
"not_a_comment": "// this is not a comment"
}
[
/* multi
line
"comment",
*/
"value": "this is not comment" /* this is another comment */
]
{
"test": "\"valid string // /*" // escaped string
}
Library normally working with *NIX \n
and Windows \r\n
line endings.
$ go get github.com/RaveNoX/go-jsoncommentstrip/cmd/jsoncommentstrip
$ cat json_with_comments.json | jsoncommentstrip