4 ms·
The original spec said UTF-8/16/32, but unaware of any reference implementation that used anything other than UTF-8 ... though, who knows with hand rolled crap,
by tracker1 7y ago
The original spec said UTF-8/16/32, but unaware of any reference implementation that used anything other than UTF-8 ... though, who knows with hand rolled crap, and windows in the mix.
- Vendan 7y agohttps://tc39.es/ecma262/#sec-json.stringify https://tc39.es/ecma262/#sec-json.stringify The stringify function returns a String in UTF-16 encoded JSON format representing an ECMAScript value, or undefined.
- masklinn 7y agoPython's `json` returns text, which you can encode however you want.