https://github.com/mcandre/kirill
JSON validator
https://github.com/mcandre/kirill
Last synced: 3 months ago
JSON representation
JSON validator
- Host: GitHub
- URL: https://github.com/mcandre/kirill
- Owner: mcandre
- License: other
- Created: 2024-01-11T06:51:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-03-01T00:07:02.000Z (4 months ago)
- Last Synced: 2026-03-01T03:35:51.585Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 2.49 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kirill: JSON validator
[](https://crates.io/crates/kirill) [](https://docs.rs/kirill/latest/kirill/) [](https://github.com/mcandre/kirill/actions/workflows/test.yml) [](LICENSE.md)
# ABOUT
kirill scans projects large and small for JSON correctness:
* Check for basic JSON(5) syntactical validity
* Identify JSON(5) files recursively in large project directories
* Verify compliance with a [JSON Schema](https://json-schema.org/)
# EXAMPLES
```console
% cd examples
% kirill .
error: fruit-missing-end-brace.json: EOF while parsing an object at line 3 column 0
error: fruit-trailing-comma.json: trailing comma at line 3 column 1
error: fruit-unquoted-key.json: key must be a string at line 2 column 5
error: fruit-with-comment.json: expected value at line 1 column 1
error: settings.json: expected value at line 1 column 1
% kirill --schema species.json zoo
error: zoo/bad-bear.json: Missing required property 'species'
% kirill books.json5
error: books.json5: expected value at line 9 column 9
% kirill --json5 books.json5
%
```
# DOWNLOAD
```sh
cargo install kirill
```
## Prerequisites
* [cargo](https://doc.rust-lang.org/cargo/)
## Postinstall
Register `~/.cargo/bin` to `PATH` environment variable.
For details on tuning kirill, see [CONFIGURATION](CONFIGURATION.md).
For details on building from source, see [DEVELOPMENT](DEVELOPMENT.md).
# RESOURCES
Prior art, personal plugs, and tools for managing data.
* [jq](https://jqlang.github.io/jq/) - styles and transforms JSON documents
* [mcandre/linters](https://github.com/mcandre/linters) - a collection of file analyzers