The ipairs
method returns a function that you can use with a for loop to iterate over all of the values in the array.
ipairs()
local myJsonArray = LuaJsonArray:new(4,"a string",true) for i, v in myJsonArray:ipairs() do print (v:string()) end -- prints the following... -- 4 -- a string -- true
|