Attempt to index number with 'id' on a table? [SOLVED]

  1. What do you want to achieve? I want to get all the servers.

  2. What is the issue? It wont let me get the ‘id’ element from a dictionary.

  3. What solutions have you tried so far? I tried replacing it with its ‘number’ but still didn’t work.

local HttpService = game:GetService("HttpService")

local Servers = HttpService:JSONDecode(game:HttpGet("""/servers/Public?sortOrder=Asc"))

local Data = Servers["data"]

for _, v in pairs(Data) do
    for i, v2 in pairs(v) do
        print(i, v2) -- prints id <the id of the server>
        print(v2["id"]) -- errors

Can somebody help me?

Nevermind i accidently used v2 instead of v.