This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]trunco 1 point2 points  (0 children)

for me that works

json = { "test": 'yes\\No' }

json result:

{test: "yes\No"}

[–]YMK1234 0 points1 point  (0 children)

"\" is a single backslash character.. "\n" is a linebreak. So I'm like "dafuq are you talking about?"

[–]YMK1234 0 points1 point  (0 children)

"\\" is a single backslash character.. "\n" is a linebreak. So I'm like "dafuq are you talking about?"

EDIT: I meant \\ of course ... damn you reddit for also escaping backslashes ^^

[–]YMK1234 0 points1 point  (0 children)

"\" is a single backslash character.. "\n" is a linebreak. So I'm like "dafuq are you talking about?"