mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 14:17:18 +00:00
19 lines
308 B
Plaintext
19 lines
308 B
Plaintext
// json.vr — JSON helpers (part of the VuurRaaf stdlib).
|
|
//
|
|
// import json
|
|
// let data = json.decode("{\"a\": 1}")
|
|
// println(json.encode(data))
|
|
// println(json.pretty(data))
|
|
|
|
fn encode(x) {
|
|
return json_encode(x)
|
|
}
|
|
|
|
fn decode(s) {
|
|
return json_decode(s)
|
|
}
|
|
|
|
fn pretty(x) {
|
|
return json_pretty(x)
|
|
}
|