AttributeError: 'dict' object has no attribute 'dumps'

A variable named json conflicts with the json module and causes the following error:

AttributeError: 'dict' object has no attribute 'dumps'

```python
import json
json = {} 
json_response = json.dumps(json)
```