diff options
author | majorseitan@blockfreie.org <majorseitan@blockfreie.org> | 2018-05-26 12:46:56 -0400 |
---|---|---|
committer | majorseitan@blockfreie.org <majorseitan@blockfreie.org> | 2018-05-26 12:46:56 -0400 |
commit | f993a516913883eda783bbe7cae80dfd42e2b428 (patch) | |
tree | 1a09a20b5a422f6d1fee490d75d49cdece1b1168 /tests/jsonTest.ur | |
parent | e2552a79ed87721a81c246b9cfd053701d665f25 (diff) |
Handling of JSON escape characters
1. Handle the escape character
\/
Diffstat (limited to 'tests/jsonTest.ur')
-rw-r--r-- | tests/jsonTest.ur | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/jsonTest.ur b/tests/jsonTest.ur index 071cf34b..715e225d 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> |