Debian/Ubuntu/Mint: Grab the .deb
file from releases.
Any other OS: download and compile with rustc/cargo.
file.json
{"bar":{"foo":true}}
commands
cat file.json | rson pretty
result
{
"bar": {
"foo": true
}
}
file.json
{
"foo": ["bar"]
}
commands
cat file.json | rson get foo.0
result
"bar"
file.json
[0, 0, 0, 1, 0, 0]
commands
$ cat file.json | rson filter '$self,==,n:1'
result
[1]
file.json
[
{ "username": "armitage" },
{ "username": "molly" },
{ "username": "wintermute" }
]
commands
$ cat file.json | rson find 'username,==,s:molly' | rson pretty
result
{
"username": "molly"
}
file.json
[
{ "verified": true },
{ "verified": false },
{ "verified": true }
]
commands
$ cat file.json | rson every 'verified,==,b:true'
result
false
file.json
[0, 0, 0, 0, 0, 0]
commands
$ cat file.json | rson length
result
6