timstuyckens/chromeextensions-knockoutjs

get All context data as JSON format

Closed this issue · 2 comments

How to get All context data as JSON format?

I'm searching a value in somewhere in context. Need to find it easly.

Hi,

You don't need the extension for that, you can just select an element and past the following

ko.toJSON(ko.contextFor($0).$root)

(see also http://knockoutjs.com/documentation/json-data.html)

ko tojson

Thanks! I didnt know.