JSON Won't Parse more than one 0 in a row

I’m trying to make JSON parse this string:

[111, 111, 111, 000]

but it says “Can’t parse JSON”
but when I try to parse this string:

[1, 1, 1, 0]

it works
how can I fix this or what is some way that I can go around this problem?

can you give your code?


print(HTTPService:JSONDecode("[111,111,111,000]"))

instead do [111,111,111,0] (for some reason)


yeah but I need it to have three 0’s because each 0 represents a third of a wall
the three 0’s mean that the whole wall is blocked
but 010 mean that the top third and bottom third of a wall are blocked but there is a walkway/path in the center third

then make it ["111","111","111","000"]
if u use numbers, 000 will be 0 because it’s the same value

I tried using letters but JSON doesn’t parse this either

[eeewww,eeewww,eeewww,eeewww]

bro fr eeewww if eeewww isnt a variable it will obviously error
(make each eeewww to "eeewww")

1 Like

nvm I just got it
I turned

[eeewww,eeewww,eeewww,eeewww]
into
["eeewww","eeewww","eeewww","eeewww"]

thanks for the help man!!

1 Like