main function testeCreateJson()
local varJson := { teste : { var1 : "oioi", var2: "oioi2", var3: "oioi3" }}
local varJson2 := { teste : 123}
local varJson3 := { teste : { var1 : varJson['teste']['var1'], var2: "oioi2" }}
local codeblock := {|| conout("oiEval")}
local array := {1, 2, 3, 4, 5, 6}
conout(varJson['teste']['var1']) //"oioi"
conout(varJson['teste']['var2']) //"oioi2"
conout(varJson['teste']['var3']) //"oioi3"
conout(varJson2['teste']) //123
conout(varJson3['teste']['var1'])//"oioi"
conout(varJson3['teste']['var2'])//"oioi2"
eval(codeblock)
conout(array[1])
conout(array[2])
conout(array[3])
conout(array[4])
conout(array[5])
conout(array[6])
return
|