Hello, I'm trying to get the name of the most popular game on the front page at any time, but for some reason it returns nil
local http = game:GetService("HttpService") local httptable = http:GetAsync("https://rprxy.xyz/games/list-json?sortFilter=1&MaxRows=1") local decoded = http:JSONDecode(httptable) print(decoded.Name)
any help would be appreciated
Hey VRGamez,
dictionary.Name;
local http = game:GetService("HttpService") local httptable = http:GetAsync("https://rprxy.xyz/games/list-json?sortFilter=1&MaxRows=1", true) local decoded = http:JSONDecode(httptable) print(decoded[1].Name) -- Gets the dictionary by indexing it from the table. Then, it gets the game's name by just using .Name index on the dictionary.
~~ KingLoneCat