Implementing Cisco Service Provider Advanced Solutions (SPCOR2) — Question 29
A web service returns a JSON object to your Python script. What is the most logical object in which to store the JSON response?
Answer options
- A. an integer
- B. a dictionary
- C. a tuple
- D. a string
- E. a list
Correct answer: A
Explanation
The correct answer is A, as the JSON object can be parsed into a Python dictionary, which is an appropriate structure for such data. The other options, like an integer, tuple, string, or list, do not provide the necessary key-value pairing that matches the structure of a JSON response.