For example, if I have {"name":"zet", "HP":[1000, 2000, 3000], "MP":2000 } as my json collection.
How do I get my HP array in corona? is the below correct?
for i=1,table.getn(object:getJsonDocList()) do
print("DocId is "..object:getJsonDocList()[i]:getDocId())
local userMobile = object:getJsonDocList()[i]:getJsonDoc();
print("User Mobile s "..userMobile[HP])
end
Thanks.