How does Python turn a JSON string to JSON? Need help understanding the process! or Python turns JSON

20 Replies, 1532 Views

Opinion time: `json.loads()` is the gold standard for python turning json string to json. Anything else is either a hack or overkill.

For malformed JSON, you *could* use `eval()`, but DON’T—it’s a security nightmare. Always use `json.loads()` with error handling.

Check out [Real Python’s guide](https://realpython.com/python-json/) for more deets.

Messages In This Thread



Users browsing this thread: 1 Guest(s)