Created attachment 210803 [details]
diff from head to provide json output
it would be nice to have the option to have diskinfo output json in addition to the correct text output.
Usually this kind of thing is done with libxo -- rather than open-coding json, the program creates some structured output stream and the user can invoke the program and elect an output format (json, xml, etc). I'm not an advocate for libxo (I think it's terrible) but if you want json from this binary, that seems to be the prevailing pattern.