September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -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
1
Task/JSON/00META.yaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
--- {}
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue