toJSON

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

MDN Reference