Closed mgzenitech closed 3 months ago
Yes, you are, but this one is tricky :-) TL;DR: Add this to jsonlint.json
:
"pretty-print": true
Options comments
and trailing-commas
make the parser ignore those two and they won't be available when the output is printed by default. If you want to retain comments or trailing commas in the output, you have to add the option pretty-print
. It will try to retain also these two, which otherwise have no value in the parsed JSON.
Also, depending on your preference, you should add trailing-newline
or no-trailing-newline
to enforce the standard and avoid false difference reports.
Test case:
jsonlint.json
:test.json
test run:
I'm a missing something in config?