This is a Rust-based command-line utility designed to parse, analyze, and search JSON files efficiently. It provides a simple way to explore JSON structures, locate specific values, and handle complex data formats. The program supports flexible input methods (file paths or stdin) and highlights search results for better readability.
- Parse and pretty-print JSON files.
- Search for specific values within JSON structures.
- Display the full path (keys or indices) to the matched values.
- Show indices when matches occur within arrays.
- Support for input via file paths or standard input (stdin).
- Color-coded output for search results.
- Rust (latest stable version)
- Clone this repository:
git clone https://github.com/nightwolf-1/json_parser.git cd json-parser - Build the project:
cargo build --release
- The binary will be avialable in the target/release directory:
./target/release/json_parser
./json_parser data.jsoncat data.json | ./json_parser data.json./json_parser data.json skillscat data.json | ./json_parser skills./json_parser data.json skills 2cat data.json | ./json_parser skills 2./json_parser data.json details.citycat data.json | ./json_parser details.city./json_parser data.json details.city 1cat data.json | ./json_parser details.city 1./json_parser -s javascript data.jsoncat data.json | ./json_parser -s javascript










