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