toJSON

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

The toJSON() method of the ContactAddress interface is a standard serializer that returns a JSON representation of the ContactAddress object's properties.

MDN Reference