https://github.com/lythenas/json-query
CLI query tool for JSON files
https://github.com/lythenas/json-query
cli cpp json
Last synced: about 1 month ago
JSON representation
CLI query tool for JSON files
- Host: GitHub
- URL: https://github.com/lythenas/json-query
- Owner: Lythenas
- License: mit
- Created: 2020-06-27T15:28:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T08:56:41.000Z (almost 6 years ago)
- Last Synced: 2025-03-21T15:09:22.263Z (over 1 year ago)
- Topics: cli, cpp, json
- Language: C++
- Homepage:
- Size: 390 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json-query
This is part of an assignment for the Object Oriented C++ course in Uni.
This project is more or less a clone of [jql](https://github.com/yamafaktory/jql)
but written in C++ instead of Rust.
It's a cli query tool for json files.
See [jql](https://github.com/yamafaktory/jql#%EF%B8%8F-usage) for examples.
## Building
The sources are built with C++20 using the `Makefile`.
```
make
```
## Running
```
make jsonquery
./jsonquery --help
```
## Tests
```sh
make check
```
or
```sh
make jsonquery_test
./jsonquery_test
```
To execute tests with coverage use:
```sh
./coverage.sh
```
This will generate a coverage report using the clang/llvm tools in
`test-coverage/index.html`.
There is also a fuzzing test:
```sh
make clean
make FUZZ=1 jsonquery_fuzz
./jsonquery_fuzz
```
## Benchmarks
(incomplete)
## Dependencies
- boost (tested with version 1.72)
For testing:
- [Catch2](https://github.com/catchorg/Catch2) (header only, included in `test/` directory)