An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        


jsonlint

`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] 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