JSON loads



examples/json/loads.py
import json

with open('data.json') as fh:
    json_str = fh.read()

print(json_str)
data = json.loads(json_str)
print(data)

{"fname": "Foo", "lname": "Bar", "email": null, "children": ["Moo", "Koo", "Roo"], "fixed": ["a", "b"]}
{'fname': 'Foo', 'lname': 'Bar', 'email': None, 'children': ['Moo', 'Koo', 'Roo'], 'fixed': ['a', 'b']}