A CLI to parse json files, being able to output properties and array indexes
cargo install jfp
|OS|Architecture| File*| |--|--|--| |Linux|x8664|jfp| |Windows|x8664|jfp.exe|
./jfp
Lorenzo Costa <http://www.costa86.tech>
Json File Parser
USAGE:
jfp --filename <FILE> --keys <TEXT>
OPTIONS:
-f, --filename <FILE> Json file to parse
-h, --help Print help information
-k, --keys <TEXT> Property to search for. Use '.' for nested properties and/or array
indexes
-V, --version Print version information
the-lord-of-the-rings.json ```json
{ "title": "the lord of the rings", "characters": [ { "name": "frodo", "race": "hobbit" }, { "name": "aragorn", "race": "human" } ] }
```
sh
./jfp -f ./examples/the-lord-of-the-rings.json -k title
json
"the lord of the rings"
sh
./jfp -f ./examples/the-lord-of-the-rings.json -k characters.0.race
json
"hobbit"