RosettaCodeData/Task/JSON/Python/json-2.py

5 lines
142 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
>>> true = True; false = False; null = None
>>> data = eval('{ "foo": 1, "bar": [10, "apples"] }')
>>> data
{'foo': 1, 'bar': [10, 'apples']}