Is there a way to programmatically dump the contents of the Firefox DOM Property Viewer to JSON? 
I've tried exporting the document object and the various attributes, but it never displays the same structure as in the DOM Property Viewer in Firefox.