[webauthn] reference "UTF-8 decode" directly rather than "parse JSON from bytes"

equalsJeffH has just created a new issue for https://github.com/w3c/webauthn:

== reference "UTF-8 decode" directly rather than "parse JSON from bytes"  ==
we recently insterted:
> Let |C|, the [=client data=] claimed as collected during the credential creation, be the result of [=parse JSON from bytes|parsing JSON from the bytes=] in <code>|response|.{{AuthenticatorResponse/clientDataJSON}}</code>.

However, this is most likely invoked RP-server-side, and is JS-specific (as we discussed).  I'm thinking we can make it implementation-non-specific by referencing https://encoding.spec.whatwg.org/#utf-8-decode, which is what [parse JSON from bytes](https://infra.spec.whatwg.org/#parse-json-from-bytes)  does in any case, and indicating that any impl is fine as long as the end results are the same as [UTF-8 decode](https://encoding.spec.whatwg.org/#utf-8-decode) provides.

PR on its way...

Please view or discuss this issue at https://github.com/w3c/webauthn/issues/792 using your GitHub account

Received on Friday, 9 February 2018 17:14:16 UTC