summaryrefslogtreecommitdiff
path: root/tests/jsonTest.ur
blob: 1be6e7b5a206772baf2753c95e9e91e8f85c4d28 (plain)
1
2
3
4
5
6
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>