Hello
--------- Line Feed
Again
"\n" is, obviously, a C newline, migrated to Javascript and then to JSON, by time it get to there, its not a Linefeed, its a newline, should be translated to a pascal LineEnding, and thats either #10 on Unix, #13#10 on Windows. (was #13 on Mac long, long ago).Not really. here: https://www.json.org/json-en.html
Or so I think .....
While it mentions LineFeed and CarriageReturn it also says -Maybe you can help ? Because /me can not find it :-[
The Unicode code point U+000A is used as the newline.
9 String
A string is a sequence of Unicode code points wrapped with quotation marks (U+0022). All code points may be placed within the quotation marks except for the code points that must be escaped: quotation mark
(U+0022), reverse solidus (U+005C), and the control characters U+0000 to U+001F. There are two-character escape sequence representations of some characters.
\" represents the quotation mark character (U+0022).
\\ represents the reverse solidus character (U+005C).
\/ represents the solidus character (U+002F).
\b represents the backspace character (U+0008).
\f represents the form feed character (U+000C).
\n represents the line feed character (U+000A).
\r represents the carriage return character (U+000D).
\t represents the character tabulation character (U+0009).
So, for example, a string containing only a single reverse solidus character may be represented as "\\".
Embedding "\u000A" instead of "\n" produces the same result, just a LineFeed on WindowsYes, see pdf ecma: it be linefeed.
Maybe you can help ? Because /me can not find it :-[From the link you posted, down right hand side, click on any of the entries under "escapes" and it takes you to https://www.crockford.com/mckeeman.html - not far down from the top. But I suspect its not expressly about JS
"Newline" not exist for json.
...see https://en.wikipedia.org/wiki/Newline#In_programming_languagesJava, PHP, and Python provide the '\r\n' sequence (for ASCII CR+LF). In contrast to C, these are guaranteed to represent the values U+000D and U+000A, respectively.
I not know how to explain better (my English is bit better but not good).You have made yourself quite understandable, far, far better than I would be in your native language !
From the link you posted, down right hand side, click on any of the entries under "escapes" and it takes you to https://www.crockford.com/mckeeman.html - not far down from the top. But I suspect its not expressly about JSThank you, light is now on :)
McKeeman FormLater/down it write about JSON.
This is an excerpt from Chapter 22 of How JavaScript Works.
This is the JSON grammar in McKeeman Form.