200-901 · Question #394
200-901 Question #394: Real Exam Question with Answer & Explanation
The correct answer is D: json.loads(). {"question_number": 7, "question": "Which Python function is used to parse a string that contains JSON data into a Python dictionary?", "correct_answer": "D", "explanation": "json.loads() (load string) deserializes a JSON-formatted string into a Python object (typically a diction
Question
Which Python function is used to parse a string that contains JSON data into a Python dictionary?
Options
- Ajson.dumps()
- Bjson.to_json()
- Cjson.parse()
- Djson.loads()
Explanation
{"question_number": 7, "question": "Which Python function is used to parse a string that contains JSON data into a Python dictionary?", "correct_answer": "D", "explanation": "json.loads() (load string) deserializes a JSON-formatted string into a Python object (typically a dictionary). The counterpart json.dumps() (dump string) serializes a Python object into a JSON string - the opposite direction. json.parse() and json.to_json() do not exist in Python's standard json module. Remember: loads = load from string, dumps = dump to string.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.