How to fix ValueError: Unmatched ''"' when when decoding 'string' in Jupyter Notebook?

I get this error when trying to import the .json files into a dataframe.

ValueError: Unmatched ‘’"’ when when decoding ‘string’ in Jupyter Notebook?

https://www.codecademy.com/paths/data-science/tracks/dspath-supervised/modules/yelp-regression-project/informationals/predict-a-yelp-rating-regression

Hello @jakebishopstan, welcome to the forums! By the looks of you error, you have an unmatched ". You have "" which matches, then '', which also matches, but then you have a ' which doesn’t match anything.
I hope this helps!

i have attached my code. my quotations are all matched.

Thanks for posting that.

It would seem that your error is occurring when Pandas is trying to deserialise the data from your JSON file. What’s possibly happening is the JSON contains the unmatched quotes '", rather than your code.

Might be worth checking the content of yelp_business.json to see if that’s the case, since that’s the file where the error is being thrown. :slight_smile:

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