Can't parse JSON

Uhhhh how would I make it do that then.

Since the StringValue cannot be anything but a string (that’s what it returns), then yes, this wouldn’t work as you need to pass a lua table.

You might have to redo some stuff in order to make it work the intended way, unfortunately.

Edit - I suggest having a module for your settings/options.

But then again, why does it work on the other songs but just not this one. On the other songs it doesn’t give a single error when decoding it but with this song it does?

It shouldn’t work on other songs either if they’re also a StringValue.

Well it does for some reason. Idk why.

It should be because the StringValue returns a string.
I can’t explain it better than that as that’s the pure fact of it.

But that still doesn’t explain why all the other songs do work fine.

Hello can you paste the Value of each StringValue from where the song does the error ?

From HttpService | Roblox Creator Documentation

  • If the input string is not a valid JSON object, this function will throw an error.

Maybe the StringValue is in a wrong format

Double-check if the string is correct, I noticed we were talking about decoding instead of encoding.

How would I check if the string is correct?

[{“notes”:{“sectionNotes”:[],“lengthInSteps”:16,“typeOfSection”:0,"mustHitSectio - Pastebin.com

Can’t you just copy the string from another fully-working string?
I don’t have too much experience when it comes to JSON.

that’s exactly what i tried doin just to make sure the song worked. but it just doesn’t work for some reason.

Wrong one. This is the correct one. JSON Error - Pastebin.com

What did you change exactly, in the string that didn’t work compared to the others?

1st I din’t change anything and just changed hte song id’s then went and tested it to test if the song would work but it just dint function. then i changed the beginning part of the string where it says the name to the name of the song and it still doesn’t work.

Here might be why:

Uhhhhh what does that mean…

I just checked and it seems that the actual JSON is invalid.
If you check it through a JSON validator such as JSONLint then it shows an error:


there is nothing wrong with your code.

The error lies here: “song”: “Grassy",” – remove that extra "