You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It cannot convert the dict data type to the JSON data type in Python IDE (Pycharm)
It shows the error: Unexpected character (''' (code 39)): was expecting double-quote to start field
The text was updated successfully, but these errors were encountered:
This is not a problem with Json_Parser. JSON strings must be enclosed in double quotes. See Introducing JSON
Unfortunately, Python has a tendency to enclose the strings in single quotes instead - at least, in Windows. I'm not sure if the issue is with Python, requests or the Operating system / Terminal.
Your best bet is to run the JSON through a text editor and search/replace the single quotes with double quotes.
Be careful not to replace single quotes inside a string though.
For a dictionary, try this:
It cannot convert the dict data type to the JSON data type in Python IDE (Pycharm)
It shows the error: Unexpected character (''' (code 39)): was expecting double-quote to start field
The text was updated successfully, but these errors were encountered: