3 ms·
Exactly, null bytes aren't allowed. > All Unicode characters may be placed within the quotation marks, except for the characters that must be escaped: quotatio
by cerved 5y ago
Exactly, null bytes aren't allowed.
> All Unicode characters may be placed within the quotation marks, except for the characters that must be escaped: quotation mark, reverse solidus, and the control characters (U+0000 through U+001F).
Any character may be escaped in this way
> Any character may be escaped.
I personally find the JSON spec very explicit while succinct
- lifthrasiir 5y agoOh, actually I made a mistake in the GP. The following sentence: > Annoyingly enough it doesn't explicitly say JSON strings are Unicode strings, [...] ...is false, I completely missed the very first section (I obviously searched for "Unicode", but failed to thoroughly check results). I have other valid criticisms of the JSON specification but that is not, so please ignore that part of rants since it was based on a wrong assumption. Thank you for (implicitly) pointing it out.
- cerved 5y agono worries, I recently spent a fair bit of time parsing JSON with sed so the spec is fresh in mind