Ejson2kv is a simple tool to convert ejson files to key-value pairs.
go install github.com/mscno/ejson2kv@latest
ejson decrypt secrets.ejson | ejson2kv
will tranform the ejson file to key-value pairs.
$ cat secrets.ejson
{
"_public_key": "kP1YIjY...",
"password": "password",
"username": "username"
}
$ ejson decrypt secrets.ejson | ejson2kv
password=password
username=username