Skip to main content
practice.schlesier.ca
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

JSON Tools

Jo

Easily create valid json from a script

Simple key value

jo key=value key2="another value"

Outputs

{"key":"value","key2":"another value"}

Embed calls to build up objects

jo -p key=$(jo foo=bar) 

Outputs

{ "key": { "foo": "bar" } }

https://github.com/jpmens/jo

Gron

Take json and output it as individual lines with a path to them for easy grep/sed etc, can also take lines and turn them back into json

jo key=value key2="another value" | gron

Outputs

json = {};
json.key = "value";
json.key2 = "“another";

https://github.com/tomnomnom/gron

jc

JSONifies the output of many CLI tools, file-types, and common strings for easier parsing in scripts

https://github.com/kellyjonbrazil/jc/wiki/Tips-and-Tricks