I am very new to Lua and am in need of assistance. I am trying to create a list of objects that have a name and a message. I need to be able to send JSON to my app like:
{{"name":"Joe","Message":"This is a test"),{....}}
From what I've read this could be accomplished with tables, but it does not seem to be working, what I have tried so far is
message = {}
messages = {}
message["name"] = "Joe"
message["message"] = "This is a Message"
messages["1"] = ?? <--- I don't know what to do here