Python - Structured Data Files
What is wrong with this Python code that tries to convert a Python dict to JSON?
import json
data = {"name": "Eve", "age": 28}
json_str = json.dumps(data["name"])
print(json_str)