toJSON

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

MDN Reference