<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Write a code to parse a JSON string into Python objects.
json_string = '{"name": "John Doe", "age": 42 }'<|im_end|>
<|im_start|>assistant
import json

json_string = '{"name": "John Doe", "age": 42 }'
data = json.loads(json_string)

print(data['name']) # John Doe
print(data['age']) # 42<|im_end|>
