vq9o
(Metatable)
February 16, 2021, 8:46am
1
My brain is working overtime at 1 am, I think I’m over-thinking this. My website returns {“code”:“100”,“json”:[[“jake”],[“nate”],[“nate 2.0”]],“method”:“SELECT”} I need to print every value from json.
My code:
My script trying to use the response.
Script returning the response from my website.
Error:
posatta
(pasta)
February 16, 2021, 8:49am
2
Did you JSONDecode the data before trying to access .json? It’ll be a string when it’s returned from Get/RequestAsync.
2 Likes
vq9o
(Metatable)
February 16, 2021, 8:50am
3
Yeah, everything else works like INSERT INTO .
1 Like
posatta
(pasta)
February 16, 2021, 8:55am
4
Is the :execute
function just returning what post
returns? Both post
and the script using the response seem fine based on a quick skim.
2 Likes
vq9o
(Metatable)
February 16, 2021, 8:57am
5
Yeah :execute
returns what post()
is doing, but formatted with some checks & with a table.
1 Like
posatta
(pasta)
February 16, 2021, 8:58am
6
You forgot the =
between local returnData
and post()
3 Likes
vq9o
(Metatable)
February 16, 2021, 8:59am
7
My issue is now fixed! Now I can go release BLOXsql.