Google Chrome display JSON AJAX response as tree and not as a plain text Google Chrome display JSON AJAX response as tree and not as a plain text ajax ajax

Google Chrome display JSON AJAX response as tree and not as a plain text


To see a tree view in recent versions of Chrome:

Navigate to Developer Tools > Network > the given response > Preview


Google Chrome now supports this (Developer Tools > Network > [XHR item in list] Preview).

In addition, you can use a third party tool to format the json content. Here's one that presents a tree view, and here's another that merely formats the text (and does validation).


The correct content-type for JSON data is application/json. I assume that is what you are missing.