September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -2,4 +2,4 @@ Load a [[wp:JSON|JSON]] string into a data structure.
Also, create a new data structure and serialize it into JSON.
Use objects and arrays (as appropriate for your language)
and make sure your JSON is valid (https://jsonformatter.org or https://codebeautify.org/jsonvalidator).
and make sure your JSON is valid (https://jsonformatter.org).

1
Task/JSON/00META.yaml Normal file
View file

@ -0,0 +1 @@
--- {}

View file

@ -1,12 +1,12 @@
import extensions.
import extensions'dynamic.
import extensions;
import extensions'dynamic;
program =
[
var json := "{ ""foo"": 1, ""bar"": [10, ""apples""] }".
public program()
{
var json := "{ ""foo"": 1, ""bar"": [10, ""apples""] }";
var o := json fromJson.
var o := json.fromJson();
console printLine("json.foo=",o foo).
console printLine("json.bar=",o bar).
].
console.printLine("json.foo=",o.foo);
console.printLine("json.bar=",o.bar)
}