livejq
is JSON parser like jq
but is designed to work in continuous input without crashing on invalid JSON
- When you have a program that is printing logs which may have other formats in between like text along with JSON, and you want to parse JSON for better readability. You can use
livejq
to parse JSON without crashing on other formats.
It works on one assumption that the JSON is a single string like '{ "name": "Kunal Singh", "age": 21 }'
.
This is a limitation, but will be fixed in future
livejq.mp4
Install using cargo
cargo install livejq
or you can find binaries
in the Release page
./my_program | livejq
Here
|
is for piping output ofmy_program
intolivejq
as input.