I'm trying to decode this JSON:
[{"ModName":"MainBase","Pos":{"Z":-13,"X":-7,"Y":0},"Rot":{"Z":0,"X":0,"Y":0}}]
Here is the problem using this line:
local HttpService = game:GetService("HttpService")
local DecodedJSON = HttpService:JSONDecode(ToDecodeJSON)
for number, tab in pairs (DecodedJSON) do
local Current = tab["ModName"]
print(tab)
end
And it prints nil instead of MainBase because the original table was:
local ATable = {ModName = "MainBase"} -- Other stuff behind
Well it doesn't print MainBase but nil.

2 comments
Thanks for the answer! :D But I can't accept it because I have 2 good answers, I added a +1 vote instead.
Thank you :-)