mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
18 lines
507 B
Plaintext
18 lines
507 B
Plaintext
1/1: Building ShowJSON (ShowJSON.idr)
|
|
Main> {"a":null,"b":true,"c":1.0,"d":"Hello, world","e":[null,"Lorem ipsum"],"f":{"key":"value"}}
|
|
JObject [("a", JNull), ("b", JBoolean True), ("c", JNumber 1.0), ("d", JString "Hello, world"), ("e", JArray [JNull, JString "Lorem ipsum"]), ("f", JObject [("key", JString "value")])]
|
|
{
|
|
"a": null,
|
|
"b": true,
|
|
"c": 1.0,
|
|
"d": "Hello, world",
|
|
"e": [
|
|
null,
|
|
"Lorem ipsum"
|
|
],
|
|
"f": {
|
|
"key": "value"
|
|
}
|
|
}
|
|
Main> Bye for now!
|