#serialization
4 pages tagged serialization.
4/4
JSON
Text-based data interchange format derived from JavaScript object literals and standardised as RFC 8259 / ECMA-404.
protobuf
Package-level reference for the protobuf package on PyPI — install, backend selection (upb / pure-Python / C++), .proto compilation, and gRPC integration.
pydantic
Validate and parse data at runtime using Python type hints with Pydantic v2. Covers BaseModel, field validators, nested models, and JSON serialization.
json
Encode and decode JSON in Python with the stdlib json module. Covers dumps/loads, indent/sort_keys/separators, custom default= and JSONEncoder, object_hook decoding, JSONL streaming, and orjson/ujson/msgspec comparison.