pretty-print the cfg and indexDef JSON