pretty print json, fix names