|
|
|
|
|
by MichaelMoser123
1765 days ago
|
|
you could allow python like comments and strip them with a regular expression substitution before parsing. Something like this.
(it strips all the lines that start with whitespace, followed by #, followed by anything until the end of the line) cat cfg.json | sed -e 's/\s*#.*$//g' | jq .
Allowing multiple lines is more complicated, can't do that with regex alone. |
|
If anybody short of a standards body tries to expand the spec, you lose out on most of that.