JsonEncodingException
Thrown when Json fails to encode a value to a JSON string.
Typical cases include encountering values that cannot be represented in JSON (e.g., non-finite floating-point numbers when they are not allowed) or using unsupported types as map keys.
The exception message includes shortMessage and, when present, a hint with actionable guidance for the developer.