Files and JSON

After decoding, what is the Python value of done?

Examples

Worked example

Input
{"done": true, "count": 2}
Expected output
True

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

The JSON boolean literal true becomes Python’s boolean value True.

Back to the lesson