The DOMQuad method toJSON() returns a JSON representation of the DOMQuad object.
toJSON()
MDN Reference