Cisco
300-615 · Question #138
The script fails to convert a JSON variable into a Python dictionary. Which action resolves the issue?
The correct answer is A. Use a json.dumps(json_output) function. See the full explanation below for the reasoning.
Question
The script fails to convert a JSON variable into a Python dictionary. Which action resolves the issue?
Exhibits
Options
- AUse a json.dumps(json_output) function
- BDefine a json_output as a YAML object, yaml json_output
- CFix the JSON syntax by modifying "attribures" to "attribures":
- DInvoke a function yaml.loads(json.output ,decoder"json")
How the community answered
(48 responses)- A85% (41)
- B4% (2)
- C2% (1)
- D8% (4)
Community Discussion
No community discussion yet for this question.

