CCNP 350-401 ENCOR Question 424 DISCUSSION
« Back to Main MenuAn engineer must export the contents of the devices object in JSON format. Which statement must be use?
A. json.print(Devices)
B. json.loads(Devices)
C. json.dumps(Devices)
D. json.repr(Devices)
An engineer must export the contents of the devices object in JSON format. Which statement must be use?
A. json.print(Devices)
B. json.loads(Devices)
C. json.dumps(Devices)
D. json.repr(Devices)
Correct Answer: C
json.dumps() function will convert a subset of Python objects into a json string.