pip install -e git+https://gist.github.com/APTy/8dea3010c0b261689339a8cc52e8dc76#egg=base64-json-decoder
This installs: base64-json-decoder
, aliased as bjd
.
Decode JSON data with arbitrarily nested base64+JSON within:
$ echo '{"payload":"eyJtZXNzYWdlIjoiSGVsbG8hIiwgImZyb20iOiAiQVBUeSJ9Cg=="}' | bjd
{
"payload": {
"message": "Hello!",
"from": "APTy"
}
}
It will even try to turn timestamps into something more readable:
$ echo '{"occurred_at": 1500000000}' | bjd
{
"occurred_at": "2017-07-13 19:40:00 UTC"
}