[Solved] Why I’m not able to parse my string into JsonValue?


The ratings json should be formatted as an array.
In json, array of values would be declared like this:

{

“title”:”Numb”,

“artist”:”Linkin Park”,

“ratings”:[5,4,5,1,3],

“youtubeID”:”kXYiU_JCYtU”

}

In your case, there was a confusion whether 4 was the next element of the ratings array or if it was the next element in json.
And before parsing use some online json parsers that would verify if your json is parsable.

solved Why I’m not able to parse my string into JsonValue?