jsonlint
is a lightweight command-line tool for validating JSON.
$ git clone https://github.com/p-ranav/jsonlint.git
$ cd jsonlint
$ mkdir build && cd build
$ cmake .. && make && make check
$ ./jsonlint --help
Usage: jsonlint [options] file
Positional arguments:
file json file to validate
Optional arguments:
-h --help show this help message and exit