Python JSON Module
JSON encoding and decoding — dump, load, dumps, loads. This category documents 6 Python json module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: json.dumps(), json.loads(), json.dump(), json.load(), json.JSONEncoder(), json.JSONDecoder(). json.dumps() serializes a Python object to a JSON formatted string. json.loads() deserializes a JSON string to a Python object. json.dump() serializes a Python object to a JSON formatted stream (file). json.load() deserializes a JSON formatted stream (file) to a Python object. json.JSONEncoder() extensible JSON encoder for custom serialization. For a structured walkthrough of the whole topic, read the JSON Module guide. JSON Module belongs to the File & Data group alongside Pathlib Module, Shutil Module, Glob Module, Fileinput Module. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground.