Re: [w3c/browser-payment-api] PROPOSAL: A new document structure for this API (#138)

> I am loathe to produce too many separate documents unless it is really necessary.

Agreed.

> all we require are rules for translating between these two forms

Having tried to come up with a generalized algorithm to do this a long time ago, I don't think this is as easy as it sounds. There are no simple rules for translating between JSON and WebIDL and/or back, you end up writing complex, object-specific algorithms. You can punt by calling .toString(), but even then there are issues - like how you deal w/ numbers. I also note that some financial organizations may want to translate the messages to XML and back.

---
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/138#issuecomment-210144815

Received on Thursday, 14 April 2016 20:54:38 UTC