How to save a Javascript object to file ?
<p>I need to save a complex javascript object to a file for later investigation.
It is a very big object, more then 50 methods and propeties.</p>

<p>I can see the object and its methods and properties (and its values) in Firefox-Firebug on DOM page, but i can't save it to a file from there. </p>

<p>I want save the object with current values of properties, not the HTML doc.
Any format of a file - HTML or JSON or anything else is good for me :)</p>

<p>How can I save the object?</p>
