CCNP 350-401 ENCOR Question 371 DISCUSSION

  • 568 views
  • 2023-06-26
« Back to Main Menu

An engineer runs the sample code, and the terminal returns this output. Which change to the sample code corrects this issue?

Q371

A. Change the JSON method from load() to loads().
B. Enclose null in the test json string in double quotes.
C. Use a single set of double quotes and condense test json to a single line.
D. Call the read() method explicitly on the test json string.

An engineer runs the sample code, and the terminal returns this output. Which change to the sample code corrects this issue?

Q371

A. Change the JSON method from load() to loads().
B. Enclose null in the test json string in double quotes.
C. Use a single set of double quotes and condense test json to a single line.
D. Call the read() method explicitly on the test json string.

Correct Answer: A

Support AceITCert.com by buying stuff you need!

2 Comments

ohhhvictor

load() : it accepts a file object. To read JSON data from a file and convert it into a dictionary.

 

 Json. loads(): to convert JSON string to a dictionary.

2024-04-24 16:36:48
IgorLVG

the image:

2024-08-07 19:51:53
In order to participate in the comments you need to be logged-in.
You can sign-up or login (it's free).