Skip to content Skip to sidebar Skip to footer

ValueError While Json.loads

I'm trying to process some data I downloaded from Scopus, and I managed to reproduce the error I get like this: import json text = '''{'abstracts-retrieval-response':{'coredata':{

Solution 1:

Your JSON is not valid. You can try this very helpful resource which can show you the errors in the JSON file. With "Validate JSON" there should be no problem finding your errors. Just copy/paste your JSON which is in between the two """ and you're fine.


Solution 2:

There is a bad closing bracket at the end:

...f-title":{"ref-titletext":{"sup":"*"}]}}}}}}"""
            ^                ^         ^^
            |                \---------/|
            \---------------------------/

Post a Comment for "ValueError While Json.loads"