jsonlint
jsonlint copied to clipboard
Lightweight command-line tool for validating JSON
jsonlint
is a lightweight command-line tool for validating JSON.
Building jsonlint
$ git clone https://github.com/p-ranav/jsonlint.git
$ cd jsonlint
$ mkdir build && cd build
$ cmake .. && make && make check
Usage
$ ./jsonlint --help
Usage: jsonlint [options] file
Positional arguments:
file json file to validate
Optional arguments:
-h --help show this help message and exit
Example Scenarios
Unterminated String
![unterminated string](https://github.com/p-ranav/jsonlint/raw/master/img/01.png)
Trailing comma in array
![trailing comma](https://github.com/p-ranav/jsonlint/raw/master/img/02.png)
Duplicate key in object
![duplicate key](https://github.com/p-ranav/jsonlint/raw/master/img/03.png)
Typo in keyword
![typo in keyword](https://github.com/p-ranav/jsonlint/raw/master/img/04.png)