Skip to content
Michał edited this page Mar 10, 2023 · 4 revisions

Reading a Json file

First, create a Json data variable using the Json() function

json1 = Json("test.json");

Next, read your desired value by it's key

Write("Value of key1: " + JsonRead(json1, "key"));

Writing Json

To write a simple Json file, use JsonWrite() passing the file name and a Dictionary with values

new Dictionary D1;

D1["kokos"] = 122;
D1["sosos"] = 133;

JsonWrite("tet.json", D1);

See the full example

Clone this wiki locally