In brief
json.loads() converts JSON text into the corresponding Python value. For example, json.loads('[1, 2]') produces a list, while json.loads('3') produces an integer. Successful decoding does not establish the expected structure.
Useful to know
json.loads() converts JSON text into the corresponding Python value. For example, json.loads('[1, 2]') produces a list, while json.loads('3') produces an integer. Successful decoding does not establish the expected structure. [1]
For an import, limit input size, then check its type and required fields. Do not call dictionary methods on every result. A syntactically valid file can still describe data unsuitable for the application.
Sources
For further detail and to check the information: