JSONDecode isn’t working for me, whenever I try to access something with it, it always returns nil.
First I made sure that it was returning the correct thing. With local test = game.HttpService:GetAsync("http://adatabaseurl.atopdomain/getPoints?userid=66932798") print(test)
Returns [{"Points":1234}]
To return the data from the online server, I am using JSON.stringify() in node.js.
If I attempt to print the points with
local test = game.HttpService:GetAsync("http://adatabaseurl.atopdomain/getPoints?userid=66932798") local test2 = game.HttpService:JSONDecode(test) print(test2.Points)
it returns nil.
Is there something wrong with the formatting of the JSON causing it to return nil?