Cisco
300-615 · Question #138
300-615 Question #138: Real Exam Question with Answer & Explanation
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?
Exhibit
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")
Community Discussion
No community discussion yet for this question.
