HttpService:GetAsync() returns a table as a string, how can I convert or get properly?

I am trying to get live currency exchange rates by using HttpService:GetAsync(). It all works fine except a string version of the table is returned. What do I use to return a table as a table, or how can I convert a string to a table?

The actual thing:

https://gyazo.com/216fbc25388c4e8f11392a4988fa8af1.png

Roblox printed version:

https://gyazo.com/915ef09fe53bfffe3c813e8956f9308a.png

Am I doing something wrong or should I change the provider?

I think you are looking for HttpService:JSONDecode. It converts a JSON table into a lua table so you can index it normally.

1 Like