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

GRboss picture GRboss · Oct 8, 2010 · Viewed 162.6k times · Source

I cannot find an answer to this one:

My AJAX calls return JSON data. In Google Chrome Developer Tools > Resources > XHR when I click on the resource on the left and then on the Content tab I see the JSON string as a string and not as a tree as Firebug and Firebug Lite do.

How do I force Chrome to diplay it as a tree. Is there a Content-type that my PHP file must have???

I would happy to know the answer!

Thank you Stefanos

Answer

Matt McClure picture Matt McClure · Dec 13, 2011

To see a tree view in recent versions of Chrome:

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