What is the name of the built-in Python module for working with JSON data?

The story behind the answer

Python's built-in module for working with JSON data is `json`. It is part of the Python standard library, so ordinary Python installations do not require a separate package to serialize or parse JSON.

The module converts between JSON text and Python values. `json.dumps()` serializes a Python object to a string, while `json.loads()` parses a JSON string. The related `json.dump()` and `json.load()` functions perform the same broad jobs with file-like objects. JSON objects typically become Python dictionaries, arrays become lists, strings remain strings, and JSON booleans and null map to `True`, `False`, and `None`.

`jsonlib`, `ujson`, and `simplejson` are not the standard built-in module name. Some are third-party or alternative implementations, and they may be useful for specialized performance or compatibility needs. JSON itself is a language-independent data-interchange format inspired by JavaScript object-literal syntax; Python's module provides the standard-library bridge to it.

Source: Wikipedia · fact-checked Aug. 2026

Add question to a list

Choose a list to keep this question in: