Can it parse string value with new line using raw string? #491
-
running this code:
throws this error:
update: I understand that this is not a legal json, so its OK, but for example: |
Beta Was this translation helpful? Give feedback.
Answered by
danielaparker
Feb 22, 2024
Replies: 1 comment 1 reply
-
They're both illegal JSON, and the error messages jsoncons produces are correct. The first contains an unescaped newline inside of a JSON string, and the second contains an unescaped quote character inside of a JSON string. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
amassalha
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
They're both illegal JSON, and the error messages jsoncons produces are correct. The first contains an unescaped newline inside of a JSON string, and the second contains an unescaped quote character inside of a JSON string.