We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, at first sorry for this question... I am newbie in Lua.
When I use cjson.encode(res), I'll get something like this:
[{ "id": 1, "col1": "value1", "col2": "value2", "col3": null }]
Can you tell me how can I get value of specific column? I tried res[0].col2, res[0][col2], res[0]["col2"], but it doesn't work.
The text was updated successfully, but these errors were encountered:
Solved. I don't understand why arrays in Lua start at 1. Can be closed :)
Sorry, something went wrong.
No branches or pull requests
Hello,
at first sorry for this question... I am newbie in Lua.
When I use cjson.encode(res), I'll get something like this:
Can you tell me how can I get value of specific column?
I tried res[0].col2, res[0][col2], res[0]["col2"], but it doesn't work.
The text was updated successfully, but these errors were encountered: