350-401 Implementing Cisco Enterprise Network Core Technologies (ENCOR)

Based on the router’s API output in JSON format below, which Python code will display the value of the `hostname` key?

  • A. json_data = response,json() print(json_data[‘response’][0][‘hostname’])
  • B. json_data = json.loads(response.text) print(json_data[‘response’][‘family’][‘hostname’])
  • C. json_data = json.loads(response.text) print(json_data[response][0][hostname])
  • D. json_data = response.json() print(json_data[‘response’][family][hostname’])
Answer: Option A.
Explanation: 

No answer description available for this question

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
error: Alert: Content is protected !!

Adblock Detected

Please consider supporting us by disabling your ad blocker