hydromodpy.core.io.canonical_json#
Deterministic JSON serialization.
Stable output across Python versions and runs: sorted keys at every level, no whitespace noise, sets promoted to sorted lists, tuples rendered as arrays. Used by calibration caches, provenance manifests, and any place that needs a reproducible byte representation of a Python object.
Functions
|
Serialize obj to a canonical JSON string. |
|
Parse a JSON string (thin wrapper around |