Back to Content

PaymentAddress: toJSON() method

files/en-us/web/api/paymentaddress/tojson/index.md

latest411 B
Original Source

{{APIRef("Payment Request API")}}{{SecureContext_Header}}{{Deprecated_Header}}{{Non-standard_Header}}

The toJSON() method of the {{domxref("PaymentAddress")}} interface is a standard serializer that returns a JSON representation of the PaymentAddress object's properties.

Syntax

js-nolint
toJSON()

Parameters

None.

Return value

A JSON object.

Browser compatibility

{{Compat}}