json — JSON encoder and decoder — Python 3.14.7 documentation

docs.python.org

Tin mới

email.iterators: Iterators

mailbox — Manipulate mailboxes in various formats

Python Module Index

3.14.7 Documentation

The Python Standard Library

Internet Data Handling

marshal: Convert Python objects to streams of bytes and back (with different constraints).

JSON (JavaScript Object Notation), specified by RFC 7159 (which obsoletes RFC 4627) and by ECMA-404, is a lightweight data interchange format inspired by JavaScript object literal syntax (although it is not a strict subs

pickle: Convert Python objects to streams of bytes and back.

JSON (JavaScript Object Notation), specified by RFC 7159 (which obsoletes RFC 4627) and by ECMA-404, is a lightweight data interchange format inspired by JavaScript object literal syntax (although it is not a strict subs

UnicodeDecodeError

UnicodeDecodeError – When the data being deserialized does not contain UTF-8, UTF-16 or UTF-32 encoded data.

integer string conversion length limitation

Changed in version 3.11: The default parse_int of int() now limits the maximum length of the integer string via the interpreter’s integer string conversion length limitation to help avoid denial of service attacks.

Implementation Limitations¶

Some JSON deserializer implementations may set limits on:

Implementation Limitations¶

Some JSON deserializer implementations may set limits on:

Command-line interface¶

The json module can be invoked as a script via python -m json to validate and pretty-print JSON objects. The json.tool submodule implements this interface.