toJSON

The DOMRectReadOnly method toJSON() returns a JSON representation of the DOMRectReadOnly object.

MDN Reference