MDN wants to learn about developers like you:


This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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


var json = PaymentAddress.toJSON()



Return value

A JSON object.


Specification Status Comment
Payment Request API
The definition of 'toJSON()' in that specification.
Candidate Recommendation Initial definition.

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support61 ? ? No No ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No61 ? ? No ? ?

Document Tags and Contributors

 Contributors to this page: fscholz, jpmedley
 Last updated by: fscholz,