Python - Structured Data Files
You receive a JSON string with nested data:
Which Python code correctly extracts the user's name after parsing?
json_str = '{"user": {"name": "Sam", "age": 40}, "active": true}'Which Python code correctly extracts the user's name after parsing?
