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.
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.
