JSON.stringify will use a toJSON method if it exists on the method.
just define toJSON: function() { return this.options; }
JSON.stringify will use a toJSON method if it exists on the method.
just define toJSON: function() { return this.options; }