add pretty-printing for json