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