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
The correct content-type for JSON data is application/json
. I assume that is what you are missing.