[web-nfc] Consider using standard JSON parsing/serializing primitives

domenic has just created a new issue for https://github.com/w3c/web-nfc:

== Consider using standard JSON parsing/serializing primitives ==
In particular, https://infra.spec.whatwg.org/#json

Currently the spec appears to use UTF-16 encoding, which is quite unfortunate as that's legacy on the web platform. Maybe there is some domain-specific reason why it's necessary, in which case that should be noted at the same point the serializing/parsing is done. And probably similar rigor should be applied as is done in the Infra spec, instead of just saying "serializing" but linking to the ES spec's JSON.stringify definition.

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/154 using your GitHub account

Received on Saturday, 29 September 2018 01:10:25 UTC