import json person = {"name": "John", "age": 30} # Convert dictionary to JSON person_json = json.dumps(person) print(person_json)