Re: [w3c/browser-payment-api] The myth of JSON-serializable object (#307)

We require JSON-serializable object to avoid this:
```javascript
var obj = {foo: null};
obj.foo = obj;
```
This is valid JavaScript, but cannot be serialized into a JSON string.

Serialization is necessary for communication to payment apps. Android apps can't receive JavaScript objects, so they take in a JSON string instead.

-- 
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/307#issuecomment-260983652

Received on Wednesday, 16 November 2016 15:57:16 UTC