JSON.stringify will use a toJSON method if it exists on the method.

just define toJSON: function() { return this.options; }

Reply via email to