Skip to main content

Module json_safe_u128

Module json_safe_u128 

Source
Expand description

Serde with module for u128 fields.

u128 is never JS-safe as a bare number once it exceeds Number.MAX_SAFE_INTEGER, so the human-readable (JSON) path stringifies large values. The binary / Value path keeps the native u128.

Functionsยง

deserialize
serialize