timstuyckens / chromeextensions-knockoutjs

The source code for the chrome dev tools extension that allows you to easily debug knockout js apps.
MIT License
140 stars 50 forks source link

get All context data as JSON format #30

Closed tayfunyasar closed 8 years ago

tayfunyasar commented 8 years ago

How to get All context data as JSON format?

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

timstuyckens commented 8 years ago

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

tayfunyasar commented 8 years ago

Thanks! I didnt know.