nerdexam
CiscoCisco

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

Understanding and Using APIs

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

#Python JSON#json.loads()#Data parsing#Serialization/Deserialization

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions