p-ranav / jsonlint

Lightweight command-line tool for validating JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Lightweight command-line tool for validating JSON

License:MIT License


Languages

Language:C++ 99.7%Language:CMake 0.2%Language:Shell 0.0%