toJSON

external fun toJSON(): JsAny(source)

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

MDN Reference