Here’s my json:
"{"question": "What artist released the hit song 'Hello' in 2015?", "answers": ["Taylor Swift", "Katy Perry", "$Adele", "Lady Gaga"], "topic": "Music in the 2010's"}, {"question": "Who is the featured artist on the song 'Despacito' by Luis Fonsi?", "answers": ["Enrique Iglesias", "Maluma", "$Justin Bieber", "Pitbull"], "topic": "Music in the 2010's"}"
Then I get the Json error:
Unterminated string starting at: line 1 column 1 (char 0)
I am simply performing json.loads() on that json.
I tried removing trailing commas and making sure I am using double quotes on property names as suggested here: https://www.geeksforgeeks.org/jsondecodeerror-expecting-property-name-enclosed-in-double-quotes-line-1-column-2-char-1/. I then couldn’t get passed this error.
I also tried passing the string on https://jsonchecker.com/ and it says it is valid json. Why is json.loads() not working?
2