jsonquery
Extract specific values from large JSON files using dot-notation queries to save tokens, supporting nested keys, array indices, and wildcards without loading entire files.
Instructions
Query a JSON file using dot-notation paths without loading the entire file into context. Supports nested keys (a.b.c), array indices ([0], [-1] for last), and wildcards ([] for all elements). Examples: "dependencies.react", "scripts.build", "items[0].name", "users[].email". Returns the matched value with its type. Objects and arrays are pretty-printed. Use this to extract specific values from large JSON files to save tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the JSON file | |
| query | Yes | Dot-notation query path (e.g. dependencies.react, items[0].name, items[*].id) |