Load a 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).

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