toJSON

external fun toJSON(): 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