In line 11 its failing to print the values within the table,why and how do I fix it?
It just prints:
Keyword is: Hats
Url is: http://roproxy.tk/catalog/json?Keyword=Hats&Category=1&ResultsPerPage=1
table: 13EE5478
function SearchCatalog(Keyword,Catergory,ResultsPerPage) local Service=game:GetService('HttpService') print('Keyword is: '..Keyword) Url='http://roproxy.tk/catalog/json?Keyword='..Keyword..'&Category='..Catergory..'&ResultsPerPage='..ResultsPerPage print('Url is: '..Url) WebRequest = Service:GetAsync(Url, true) AssetsTable = Service:JSONDecode(WebRequest) return AssetsTable end Table = SearchCatalog("Hats",1,1) for i,v in pairs(Table)do print(v) end
The contents of Table
is itself a Table, as you can see from the print statement on line 13.
You have to loop through that table to actually read any data.