Formatting .JSON to Table?

I’m trying to format .JSON data from HTTP Service into a useable and readable table. Is it possible to get any of the times below and then form that into a table.

EX: “{“id”:159,“name”:“Spaceship Earth”,“is_open”:true,“wait_time”:15,“last_updated”:“2022-07-11T18:00:49.000Z”}]},”

This data was obtained from: game:GetService("HttpService"):GetAsync(("https://queue-times.com/en-US/parks/5/queue_times.json")

Have you already tried using HttpService:JSONDecode on the string?

local response = -- the JSON string

local responseTable = game:GetService("HttpService"):JSONDecode(response)
print(responseTable)

Printing out the response table will give a traversable table in the output, and you can use that to get to one of the times. As for parsing the time, I believe you can use DateTime.fromIsoDate to turn it into a DateTime object, and you can use DateTime methods/properties from there to get what you need.

1 Like

My bad, I’m still very new to this HTTP stuff >.<
Thank you for the help, friend! :blue_heart:

1 Like