If you're doing json to dict in function python, consider using the `simplejson` library. It’s more forgiving than the built-in `json` module.
Install it with `pip install simplejson` and use it the same way.
```python
import simplejson as json
def json_to_dict(json_str):
return json.loads(json_str)
```
Handles edge cases better, IMO.
Install it with `pip install simplejson` and use it the same way.
```python
import simplejson as json
def json_to_dict(json_str):
return json.loads(json_str)
```
Handles edge cases better, IMO.
