Let's say a naive implementation. Mainly to mimic the json.tool format generally (most of the switches are not applicable and I'm not going to mimic it completely).