HttpService:JSONDecode breaking script

Anyone know why HttpService is breaking my scripts in studio? It works in live games, however in studio, running this line of code breaks any script:

print(game:GetService("HttpService"):JSONDecode("[]"))

Even without a print it still breaks for me, I just updated studio before making this topic to make sure it wasn’t an issue with an outdated version of studio.
There are no errors, but nothing prints either. Another repro:

print("okay")
HttpService:JSONDecode("['aa','ea']")
print("something is broken")

It prints “okay” but never prints “something is broken”.
Command bar still works, however scripts don’t work.
Any help? My game uses JSONDecoding for loading player data, and I’d like to be able to test some changes before making it live.
Edit:
It appears to work outside of the playeradded connection but doesn’t work inside it?? Honestly I’m so confused why its breaking without any errors.

1 Like

For me that second one errors “Can’t parse JSON” (because JSON only uses quotation marks, not apostrophes), but the first one works fine. Not sure what your issue is, but more context would be helpful if it only occurs in PlayerAdded connections.

3 Likes

apparently it was an issue caused by me, as one of my new starting stats was invalid json, but it never showed any error in the output window. Thanks for the help.