Ok given up and coming for help
, been googling and trying all sorts of examples but none seem to be working hopefully one of you fine people can help me out ![]()
I’m totally new to lua, only used to PHP
So far ive created a “http.request” which returns a json string, just a basic one for now like the following
{"scores":[{"John":"200"},{"Steve":"50"}]}
which is then decoded using “json.decode”
which works fine, and when printed to console prints out the following
“DEBUG:SCRIPT: table: 0x01f75821d740”
So I assume the json is now turned into a lua table as it mentions in the docs? however no matter what I try and all the examples ive tried none seem to print anything from the table.
if possible I would like to print any row from the table, or a way to loop through the table would be find and I can just grab the rows that way by a counter or something.
however anytime I try and print anything from the table it just says “nil”
thanks in advance ill carry on trying other stuff in the mean time and post back if I fix it