Serialize datetime and Decimal in JSON with an explicit Python contract
Use ISO timestamp strings and decimal strings, then reconstruct the fields explicitly. A complete standard-library example shows timezone checks, precision and predictable failures.
JSON / Serialization / Deserialization / Datetime / Decimal / Python / Data Contract / Type Handling