jsonlint icon indicating copy to clipboard operation
jsonlint copied to clipboard

Lightweight command-line tool for validating JSON

jsonlint

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

Trailing comma in array

trailing comma

Duplicate key in object

duplicate key

Typo in keyword

typo in keyword