From c4df1e27f4f8a3b02bb1e1fac273f0868a2565bf Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 10 Apr 2018 16:07:31 -0400 Subject: [PATCH] some remarks --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7136077fd..861f2b5eb 100644 --- a/README.md +++ b/README.md @@ -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".