Eli Zaretskii <e...@gnu.org> writes:
> That depends on the reason why the CR character appeared there in the > first place. Are they required for the strings in questions, or are > they simply an artifact of how the server marshaled JSON data on the > wire? I am not convinced, in my mind if the marshaling operation converts \n to \r\n (or any other character combination) within a string literal, then the server's JSON conversion is broken. > In the latter case, the CR characters are the result of > Windows-style text writing, which adds a CR to each newline, and > therefore removing that CR should indeed happen where Emacs decodes > the EOLs of the incoming stuff. I fail to see how that is not due to an broken json marshaling and not intentionally chosen line endings by the server. Of course I might be overlooking something. /Daniel Pettersson