toJSON

external fun toJSON(): JsAny(source)

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

MDN Reference