diff options
author | majorseitan@blockfreie.org <majorseitan@blockfreie.org> | 2018-04-14 21:56:09 -0400 |
---|---|---|
committer | majorseitan@blockfreie.org <majorseitan@blockfreie.org> | 2018-04-14 22:00:10 -0400 |
commit | 2bc51bd866b52bc738f259ffe6e9fb8f6068a6b6 (patch) | |
tree | df350f2ffd18c9848e4679243de395ae42d2b957 /tests | |
parent | 0cadb1a719bc515af2449ac966e545a6599aee4d (diff) |
Handling of JSON escape characters
1. Handle escape sequence chars
\t \n \r
2. Fail on unsupported escape characters.
Instead of skipping \ on unsupported
sequences it now fails.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/jsonTest.ur | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/jsonTest.ur b/tests/jsonTest.ur index 97898de8..1be6e7b5 100644 --- a/tests/jsonTest.ur +++ b/tests/jsonTest.ur @@ -1,6 +1,7 @@ open Json fun main () : transaction page = return <xml><body> + <pre>{[ fromJson "\"line 1\\nline 2\"" : string ]}</pre><br/> {[fromJson "[1, 2, 3]" : list int]}<br/> {[toJson ("hi" :: "bye\"" :: "hehe" :: [])]} </body></xml> |