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