Skip to main content

Module json

Module json 

Source
Expand description

JavaScript JSON numbers at request, response, callback and storage boundaries.

JsValue carries IEEE754 numbers, including Infinity and signed zero, without enabling serde_json features that reserve otherwise valid application keys.

Enums§

JsValue

Functions§

deserialize_btree_map
Preserve arbitrary values in flattened public view extension fields.
deserialize_map
Typed object adapter for arbitrary values inside a string-keyed map.
deserialize_optional_map
Deserialize arbitrary values in an optional object field.
deserialize_optional_value
Optional arbitrary JSON field adapter; null retains normal Option semantics.
deserialize_value
Preserve arbitrary JSON object keys in a typed serde_json::Value field.
from_slice
Errors
from_value
Decode an owned DTO.
number_as_f64
number_to_string
Errors
parse_value
Parse RFC8259 structure with JavaScript f64 conversion. Strings use serde_json’s escape/UTF8 validation; structural recursion is bounded to its default depth.
serialize
Errors
to_string
Errors
to_value
Errors
to_vec
Encode Serialize data exactly as JSON.stringify would encode its numbers.