title: How to stringify event object?
body: <p><code>JSON.stringify(eventObject);</code></p>
  
  <p>gives:</p>
  
  <p><code>TypeError: Converting circular structure to JSON</code></p>
  
  <hr>
  
  <p><code>dojox.json.ref.toJson(eventObject);</code></p>
  
  <p>gives:</p>
  
  <p><code>TypeError: Accessing selectionEnd on an input element that cannot have a selection.</code></p>
  
  <hr>
  
  <p>Is there some library/code ready to use to accomplish it ?</p>