#JSON
3 posts tagged JSON. All posts
Python logging setup: dictConfig, JSON log lines and per-library levelsConfigure Python logging with dictConfig: the logger hierarchy, a small JSON formatter, quieter third-party libraries, logging.exception, and library rules.
Serde attributes in Rust: rename, default, flatten and enum taggingThe serde attributes that shape your JSON: rename_all, default, skip_serializing_if, flatten, deny_unknown_fields, the four enum representations, and with.
Structural pattern matching in Python: matching dicts, sequences and classesUse match/case to parse JSON events and command tuples, match classes with __match_args__, add guards, and avoid the capture-vs-constant trap.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)