jid
Json Incremental Digger
It's a very simple tool.
You can drill down JSON interactively by using filtering queries like jq.
Suggestion and Auto completion of this tool will provide you a very comfortable JSON drill down.
Demo
Installation
- With homebrew (for Mac)
- With pkg (for FreeBSD)
- Other package management system
- Simply use "jid" command
- Build
With homebrew (for Mac)
brew install jid
With pkg (for FreeBSD)
pkg install jid
Other package management systems
Jid can install by package management systems of below OS.
Simply use "jid" command
If you simply want to use jid
command, please download binary from below.
https://github.com/simeji/jid/releases
Build
go get -u github.com/simeji/jid/cmd/jid
Usage
Quick start
simple json example
Please execute the below command.
echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}', jid
then, jid will be running.
You can dig JSON data incrementally.
When you enter .bb.aaa[2]
, you will see the following.
[Filter]> .bb.aaa[2]
[
1,
2
]
Then, you press Enter key and output [1,2]
and exit.
simple json example2
This json is used by demo section.
echo '{"info":{"date":"2016-10-23","version":1.0},"users":[{"name":"simeji","uri":"https://github.com/simeji","id":1},{"name":"simeji2","uri":"https://example.com/simeji","id":2},{"name":"simeji3","uri":"https://example.com/simeji3","id":3}],"userCount":3}}', jid
With a initial query
First argument of jid
is initial query.
(Use JSON same as Demo)
with curl
Sample for using RDAP data.
curl -s http://rdg.afilias.info/rdap/domain/example.info, jid
Load JSON from a file
jid < file.json