Can't Parse JSON..?

Hello! I’ve been having an Issue with the “Can’t Parse JSON” Error,

print(pfolder.ItemsSave.Value)
local ItemsSave = (HttpService:JSONDecode(pfolder.ItemsSave.Value) or {});

image
I have no idea why, but it just Prints out “Can’t parse JSON”!

If that’s the data you’re trying to decode on the line above, curly brackets are for dictionaries; if you’re manually typing it and want an array use square brackets for arrays.

Valid:

["Saphire"]

Invalid:

{"Saphire"}
1 Like

Thank you so so much! You saved me so much time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.