toJSON

fun toJSON(): ERROR CLASS: Symbol not found for JsAny(source)

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

MDN Reference