API Help

Ned Batchelder ned at nedbatchelder.com
Wed Jun 14 21:00:26 EDT 2017


On Wednesday, June 14, 2017 at 7:06:39 PM UTC-4, justin walters wrote:
> JSON and Python dictionaries have nearly the exact same syntax. That's why
> working with
> JSON in Python is such a joy! :)
> 
> You can paste any valid JSON into a Python REPL and it will be interpreted
> as a Python dictionary.

Careful: JSON booleans are true and false, not True and False, and the missing
value is null, not None.  So valid JSON might not be readable as Python.

--Ned.



More information about the Python-list mailing list