views:

22

answers:

1

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

A: 

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

David Dorward
Unfortunately this still doesn't force Chrome to turn the JSON string into tree. Thanks though!
GRboss