summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar majorseitan@blockfreie.org <majorseitan@blockfreie.org>2018-04-15 16:20:31 -0400
committerGravatar majorseitan@blockfreie.org <majorseitan@blockfreie.org>2018-04-15 16:20:31 -0400
commite2552a79ed87721a81c246b9cfd053701d665f25 (patch)
tree8e2e2008afaae431bf0aeccfa0b91789eda10221 /tests
parent2bc51bd866b52bc738f259ffe6e9fb8f6068a6b6 (diff)
Handling of JSON escape characters
1. Handle the escape character \\
Diffstat (limited to 'tests')
-rw-r--r--tests/jsonTest.ur2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/jsonTest.ur b/tests/jsonTest.ur
index 1be6e7b5..071cf34b 100644
--- a/tests/jsonTest.ur
+++ b/tests/jsonTest.ur
@@ -1,7 +1,7 @@
open Json
fun main () : transaction page = return <xml><body>
- <pre>{[ fromJson "\"line 1\\nline 2\"" : string ]}</pre><br/>
+ <pre>{[ fromJson "\"\\\\line 1\\nline 2\"" : string ]}</pre><br/>
{[fromJson "[1, 2, 3]" : list int]}<br/>
{[toJson ("hi" :: "bye\"" :: "hehe" :: [])]}
</body></xml>