Does anyone know of a tool or extension to the chrome developer tools that will take the response of a request and format it if it's XML or JSON. I've done quite a bit of looking and have not been able to find any type of tool to properly format the response tab given xml or json response text.

I think you can paste it into JSBeautifier and it'll format it for you.
–
sachleenOct 22 '12 at 19:52

1

Looking for something wear I don't have to copy and paste the content out of chrome. I'm already using several tools depending on what I'm doing to format the response so it is more readable, but I'm looking to save time. If I don't have to cut and paste every time I look at the response, it would be more convenient.
–
denasOct 22 '12 at 20:13

What does the header exactly needs to be? I use Content-type: text/xml and <?xml version="1.0" encoding="utf-8"?> and under Preview, it's still in plain text and on one line. I tried Content-type: application/xml and that didn't pretty print the XML either.
–
hobbes3Apr 24 '13 at 16:55

@romacafe (and to others who can see the XML formatted in the Preview tab), what is the content-type returned by your server? More than 2 years after this question was first asked, I am still not seeing the XML formatted in the Preview tab, now on Chrome 39.
–
avernetJan 15 at 18:05

Its been awhile... Pretty sure it was application/xml, and as I noted, XML wasn't formatted for me if the response code was in the 500 range, regardless of content type.
–
romacafeJan 15 at 18:26