On 04/12/2018 18:47, Josef Bacik wrote: > + For example > + "write" : { > + "io_bytes" : 313360384, > + "bw" : 1016, > + } > + > + Get's collapsed to > + > + "write_io_bytes" : 313360384, > + "write_bw": 1016, I'd definitively prefer to not pull in python as a dependency. The above example can be done in shell (with the jq utility) as follows: jthumshirn@linux-x5ow:~$ cat test.json |\ jq '. | {write_io_bytes: .write.io_bytes, write_bw: .write.bw}' { "write_io_bytes": 313360384, "write_bw": 1016 } And on a plus side jq is small as well: jthumshirn@linux-x5ow:~$ zypper info jq Loading repository data... Reading installed packages... Information for package jq: --------------------------- Repository : openSUSE:Leap:15.0 Name : jq Version : 1.5-lp150.1.10 Arch : x86_64 Vendor : openSUSE Installed Size : 93.4 KiB Installed : Yes [...] -- Johannes Thumshirn SUSE Labs Filesystems jthumshirn@xxxxxxx +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850