Linux command
jid 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Interactively explore JSON file
jid < [file.json]
Explore JSON from command output
curl -s [https://api.example.com/data] | jid
Explore with initial query
jid -q ".[0].name" < [file.json]
Output with monochrome
jid -M < [file.json]
Pretty print output
jid -p < [file.json]
说明
jid (JSON Incremental Digger) is an interactive JSON query tool. It displays JSON data and provides real-time filtering with autocomplete as you type queries. Unlike jq which runs queries non-interactively, jid shows immediate results as you build your query. Tab completion suggests available keys and indices, making it easy to explore unfamiliar JSON structures. The query syntax follows jq conventions. Type . to access object keys, n for array indices, and .[] to iterate arrays. Autocomplete shows available options at each level. When you press Enter, jid outputs the current filtered result to stdout, which can be piped to other commands. This makes it useful for interactively building jq queries.
参数
- -q _query_
- Initial query string to start with.
- -M
- Monochrome output (no colors).
- -p
- Pretty print the output JSON.
- -h
- Display help information.
- -version
- Display version information.
FAQ
What is the jid command used for?
jid (JSON Incremental Digger) is an interactive JSON query tool. It displays JSON data and provides real-time filtering with autocomplete as you type queries. Unlike jq which runs queries non-interactively, jid shows immediate results as you build your query. Tab completion suggests available keys and indices, making it easy to explore unfamiliar JSON structures. The query syntax follows jq conventions. Type . to access object keys, n for array indices, and .[] to iterate arrays. Autocomplete shows available options at each level. When you press Enter, jid outputs the current filtered result to stdout, which can be piped to other commands. This makes it useful for interactively building jq queries.
How do I run a basic jid example?
Run `jid < [file.json]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -q _query_ do in jid?
Initial query string to start with.