pretty-print json messages