Turning a JSON File From a Github Repo, into a Luau Table

Heya, I’m Trying to make a Ban System, That i can easily Add UserIds To, on Github. However, i get the error “Can’t parse JSON”, on line 5. My Json Looks Like this:

{
  "User1": 898499502,
}

and My Code in Studio is This:

local HTTPS = game:GetService('HttpService')

local message = HTTPS:GetAsync("URL here")

local MessageTable = HTTPS:JSONDecode(message)

print(MessageTable)

I do actually have a URL in the GetAsync, But i Removed it, As theres Private Info in it.

3 Likes

Just Realized i Had a Comma at the end, if anyone else has the same issue, try removing the Comma in the last entry

2 Likes