toJSON

open external fun toJSON(): JsAny(source)

The toJSON() method of the DOMQuad interface returns a JSON-serializable plain object representing the DOMQuad object.

MDN Reference