So I scripted my script already:
hs = game:GetService("HttpService") myTableJSON = hs:GetAsync("https://search.rprxy.xyz/catalog/json?Subcategory=16&SortType=3&ResultsPerPage=1", false) myTable = hs:JSONDecode(myTableJSON)
I tried printing my table but when I do that I get this in my output: "table: 1FEA7820"
So I tried doing this: print(myTable[1]) and I get this in my output: "table: 1FDFDE20"
So my question is, How can I use the Catalog Data? I want to make a Catalog GUI thing. But I don't know how to access the Table...
When you use the GetAsync and it returns a JSON table, and then when you decode it, it gets converted into a Lua table. If you do print(table)
to a Lua table it just tells you the internal table index. If you want to peer inside, try:
for i, v in pairs(tableName) do print(i, v) end
The table is identical to the table returned via JSON.