Best way to convert json to dict in function python? Need help! or How to properly handle json to dic

22 Replies, 1780 Views

If you’re struggling with json to dict in function python, maybe the issue isn’t your code but the JSON itself.

Try pasting your JSON into [JSON Formatter](https://jsonformatter.curiousconcept.com/) to see if it’s valid.

Also, `print(type(json_str))` to confirm it’s a string.

Messages In This Thread



Users browsing this thread: 1 Guest(s)