Debugging JSON using Chrome's Dev Tools

debugging, google-chrome-devtools, json

Solution

If what you really want is to browse this result set in a convinient way, just install one of JSON viewers for Chrome (preferably JSONView).

If you don't want to install any plugins, just run this:

JSON.parse($('.webkit-line-content').innerHTML);

in the console on page:

view-source:https://search.twitter.com/search.json?q=stackexchange

Problem

How do I access the results array from the following page using Google Chrome's console? twitter.com/search.json?q=stackexchange I keep getting this error: ReferenceError: results is not defined

Original source