pretty print json and xml responses in debug mode