Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

19
Task/JSON/Zkl/json-1.zkl Normal file
View file

@ -0,0 +1,19 @@
a,b:=Import.lib("zklYAJL");
var [const] YAJL=a, toJSON=b;
src:=
#<<<
0'|{
"pi": 3.14,
"large number": 123456789123456791,
"an array": [
-1,
true,
false,
null,
"foo"
]
}|;
#<<<
obj:=YAJL().write(src).close();
// or obj:=src.pump(YAJL()).close(); // for example, from file or socket
obj.println();

2
Task/JSON/Zkl/json-2.zkl Normal file
View file

@ -0,0 +1,2 @@
// using above code plus:
toJSON(obj).println();