toJSON

external fun toJSON(): JsAny(source)

The DOMPointReadOnly method toJSON() returns an object giving the JSON form of the point object.

MDN Reference