Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upJson.Decoder.string doesn't support escaped double quotes #716
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
process-bot
Sep 21, 2016
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Sep 21, 2016
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
matasar
closed this
Sep 21, 2016
quangv
referenced this issue
Oct 22, 2017
Open
Should `\"` in triple-quoted strings be turned into `\\"` ? #387
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
matasar commentedSep 21, 2016
•
edited
Edited 1 time
-
matasar
edited Sep 21, 2016 (most recent)
Elm version: 0.17.1
Browsers: Safari, Chrome, Firefox
I made a simple test case to show what I mean. Based on the error, it seems like it might be not treating the quotation mark as escaped. I tried
\x22and see the same error as well.I'm very new to Elm, so I might be doing something obviously stupid with Elm, but using \ to escape double quotes is legal Json as far as such a thing exists.
Update: As I play with this more, I think the problem isn't with JSON at all but is that the """ for multiline strings has escaping behavior I didn't expect.