mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 15:37:18 +00:00
stdlin
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user