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
You can type: console. debug( , then CTRL+Space, you will see all accessible objects and methods. +1 cool. I really enjoyed accessing these variables from the console, wish I could access "results" because its so much easier for me to understand JSON.
To enable the display of JSON debug information, in the Forms Builder Settings workspace, select Debug - Show Generated JSON Model, select the Value check box, and click Save Settings.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With