exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 376 discussion

Actual exam question from Cisco's 200-901
Question #: 376
Topic #: 1
[All 200-901 Questions]

Which Python function is used to parse a string that contains JSON data into a Python dictionary?

  • A. json.dumps()
  • B. json.to_json()
  • C. json.parse()
  • D. json.loads()
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Pateras_
Highly Voted 1 year, 10 months ago
loads() method can be used to parse a valid JSON string and convert it into a Python Dictionary. It is mainly used for deserializing native string, byte, or byte array which consists of JSON data into Python Dictionary
upvoted 10 times
...
herrmann69
Most Recent 8 months, 3 weeks ago
Selected Answer: D
A. json.dumps() Serialize `obj` to a JSON formatted `str`. B. json.to_json() does not exist C. json.parse() does not exist D. json.loads() Deserialize `s` (a `str`, `bytes` or `bytearray` instance containing a JSON document) to a Python object.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago