13. Overview jsonΒΆ

Beginning with UniPlot R2026.0 the json_simple function can be used to load json data into a UniScript object.

Example

    s = "{" ..
            +"\"name\": \"John\"," ..
            +"\"age\": 30," ..
            +"\"married\": false," ..
            +"\"children\": null," ..
            +"\"skills\": [\"UniPlot\", \"UniScript\", \"JSON\"]" ..
    +"}";
    o = json_simple(s);
[.
    age = 30,
    children = 1e+10,
    married = 0,
    name = "John",
    skills[1;3] = ["UniPlot", "UniScript", "JSON"],
]

Functions

json_simple

json_simple converts a valid json string into a UniScript object.

See also

Overview Files

id-401854