This modules allows to convert between Python objects and the JSON data format.
Return obj represented as a JSON string.
obj
Parse the JSON str and return an object. Raises ValueError if the string is not correctly formed.
str
ValueError
Parse contents of fp (a .read()-supporting file-like object containing a JSON document). Raises ValueError if the content is not correctly formed.
fp
.read()