toJSON

open external fun toJSON(): JsAny(source)

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

MDN Reference