I would like to convert a string into an array (a small map in a game with coordinates, colors, etc.), the string represents a nested array, and I am not sure how to do it. I would like to open an array after the first { , then open an array after each { , and read the key/value until the } :
function stringToArray()
local Array = {}
local txt = "{ {Group = 123, Pos = 200}, {Group = 124, Pos = 205} }"
for str in string.gmatch(txt, .....
end