Re:A Sketch of the Biggest Idea in Software Architecture (2022)
by rusk on Monday April 22, 2024 @04:52PM
(#40120305)
Endianness etc is a feature of the encoding. Most JSON implementations I’ve used require the raw bytes to first be decoded as such.
[ Parent
| on HN ]
Re:A Sketch of the Biggest Idea in Software Architecture (2022)
by samatman on Monday April 22, 2024 @09:37PM
(#40127543)
No, endianness is not a feature of UTF-8 encoding. There isn't a UTF-8LE and a UTF-8BE. That's because the codeunit is bytes.
Forget "decoding", you have to parse JSON. But you don't have to figure out how it's encoded first. Because it's a byte format. You already know.
Re:A Sketch of the Biggest Idea in Software Architecture (2022)
by rusk on Tuesday April 23, 2024 @05:54AM
(#40130203)
There isn’t a UTF-8LE/BE because it is implicitly BE for wide characters. Any byte in a WC sequence cannot meaningfully be interpreted (exc character class, page etc) without its companions, so not just bytes. There is an element of presentation that must happen before “mere bytes” are eligible for JSON