Re: [w3c/browser-payment-api] Making this API work with HTML Forms (#330)

The serializer is a `.toJSON()` method, right? That's [automatically called](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior) when developer writes `JSON.stringify(response)`. The `.json()` method would not be automatically called by `JSON.stringify(response)`. Can we stick with `.toJSON()` because of this?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/330#issuecomment-266043590

Received on Friday, 9 December 2016 15:38:54 UTC