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’])
Correct Answer: A