https://github.com/p-ranav/jsonlint
Lightweight command-line tool for validating JSON
https://github.com/p-ranav/jsonlint
checker cpp json jsonlint lightweight mit-license validator
Last synced: 9 days ago
JSON representation
Lightweight command-line tool for validating JSON
- Host: GitHub
- URL: https://github.com/p-ranav/jsonlint
- Owner: p-ranav
- License: mit
- Created: 2019-11-13T21:21:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-19T10:29:40.000Z (about 5 years ago)
- Last Synced: 2025-04-08T22:23:19.068Z (about 1 month ago)
- Topics: checker, cpp, json, jsonlint, lightweight, mit-license, validator
- Language: C++
- Homepage:
- Size: 377 KB
- Stars: 34
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
`jsonlint` is a lightweight command-line tool for validating JSON.
## Building `jsonlint`
```bash
$ git clone https://github.com/p-ranav/jsonlint.git
$ cd jsonlint
$ mkdir build && cd build
$ cmake .. && make && make check
```## Usage
```bash
$ ./jsonlint --help
Usage: jsonlint [options] filePositional arguments:
file json file to validateOptional arguments:
-h --help show this help message and exit
```## Example Scenarios
### Unterminated String
### Trailing comma in array
### Duplicate key in object
### Typo in keyword
![]()