4 ms·
The original spec did require that all JSON decoders support UTF-8, though.
by DaiPlusPlus 2y ago
The original spec did require that all JSON decoders support UTF-8, though.
- foldr 2y agoHmm, not as I read it. It says that UTF-8 is the 'default' encoding. In context that just means that it's the encoding you assume if the first four octets don't match a pattern characteristic of one of the other encodings (when restricted to ASCII characters). See section 3 of https://datatracker.ietf.org/doc/html/rfc4627 https://datatracker.ietf.org/doc/html/rfc4627. The original RFC is vague, but I think the idea is that a fully conformant implementation would support all the encodings mentioned.