mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
some remarks
This commit is contained in:
@@ -139,7 +139,7 @@ Inspiring links:
|
||||
|
||||
- Values must be one of false / null / true / object / array / number / string
|
||||
|
||||
- A string begins and ends with quotation marks. 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). [Decoding UTF-8 is fun](https://github.com/skeeto/branchless-utf8/blob/master/utf8.h).
|
||||
- A string begins and ends with quotation marks. 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). We can probably safely assume that strings are in UTF-8. [Decoding UTF-8 is fun](https://github.com/skeeto/branchless-utf8/blob/master/utf8.h). However, any character can be escaped in JSON string and escaping them might be required? Well, maybe you can quickly check whether a string needs escaping.
|
||||
|
||||
- Regarding strings, Geoff wrote:
|
||||
> For example, in Stage 2 ("string detection") we could validate that the only place we saw backslashes was in places we consider "inside strings".
|
||||
|
||||
Reference in New Issue
Block a user