Skip to content

Lightweight command-line tool for validating JSON

License

Notifications You must be signed in to change notification settings

p-ranav/jsonlint

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages