{"repo":"micahkepe/jsongrep","free":true,"listed":false,"github":"https://github.com/micahkepe/jsongrep","clone":"git clone https://github.com/micahkepe/jsongrep.git","description":"A path query language for JSON, YAML, TOML, and other serialization formats.","language":"Rust","stars":664,"topics":["command-line-tool","json","query-language","search","cbor","developer-tools","messagepack","toml","yaml"],"license":"MIT","category":"cli-tools","readme_excerpt":"jsongrep is a command-line tool and Rust library for fast querying of JSON, YAML, TOML, JSONL, CBOR, and MessagePack documents using regular path expressions . Try it in your browser · Install Quick Links - Installation - Quick Example - Why jsongrep? - jsongrep vs jq - Benchmarks - Multi\\-Format Input - CLI Usage - More CLI Examples - Query Syntax - Library Usage - Shell Completions - Man Pages - Contributing - License Installation via Homebrew : via Winget : via Scoop : via cargo : Quick Example Extract all first names from the Nobel Prize API: Works with inline JSON too: Why jsongrep? JSON documents are trees: objects and arrays branch into nested values, with edges labeled by field names or array indices. jsongrep lets you describe sets of paths through this tree using regular expression operators - the same way you'd match patterns in text. This is different from tools like jq , which use a filter pipeline to transform data. With jsongrep , you declare what paths to match rather than describing how to transform . The query compiles to a DFA that processes the document efficiently. See the blog post for the motivation and design behind jsongrep. jsongrep vs jq jq is a powerful tool, but its filter syntax can be verbose for common path-matching tasks. jsongrep is declarative: you describe the shape of the paths you want, and the engine finds them. Find a field at any depth: jsongrep : -F treats the query as a literal field name at any depth: jq : requires a recursive desce","default_branch":null,"files":null,"tree":[],"storefront":"/r/micahkepe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/micahkepe/jsongrep/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}