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

Viewed 192203

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 display it as a tree. Is there a Content-type that my PHP file must have???

10 Answers

You can use Google Chrome Extension: JSONView All formatted json result will be displayed directly on the browser.

How to get Tree-view

See step by step instructions on how to do this in the below GIF. (I recorded in Chrome - chromium shouldn't be too different.)

Click on the link to enlarge and follow along

How to get the tree view of the response in chrome

Related