Commented JSON config
Use comment lines using # at the beginning of each line, within a line ; and /* */ blocks
anywhere in the json block.
func LoadJSONConfig(path string) (map[string]interface{}, []byte)
# Top notes
# some more text...
{
# more notes...
"my-info":
[
# notes for object one
{
# my comments...
"some-key" : "some value /* notes go here */",
# notes for this key
"some-array" :
[
"value 1", # inline comment will also be omitted
/* more notes */
"value 2"
]
}
]
}