# README
go-jsoncommentstrip
GO library for strip JSON comments from input.
Comment Types
Single Line
{
// this is a comment
"not_a_comment": "// this is not a comment"
}
Multiple Lines
[
/* multi
line
"comment",
*/
"value": "this is not comment" /* this is another comment */
]
Escaping in JSON
{
"test": "\"valid string // /*" // escaped string
}
Line Endings Support
Library normally working with *NIX \n
and Windows \r\n
line endings.
Commandline Tool
$ go get github.com/RaveNoX/go-jsoncommentstrip/cmd/jsoncommentstrip
$ cat json_with_comments.json | jsoncommentstrip
License
# Packages
No description provided by the author
# Functions
NewReader creates new Reader instance.
# Interfaces
Reader reader which reads JSON and strips comments from it.