Skip to main content

Module serde_impl

Module serde_impl 

Source
Expand description

Serde serialization and deserialization implementations for JSON values.

This module provides the to_value function for converting serializable Rust types into [JsonValue] AST nodes, and from_value for deserializing [JsonValue] nodes back into Rust types.

Structs§

SerializeArray
Helper for serializing JSON arrays.
SerializeObject
Helper for serializing JSON objects.
SerializeVariant
Helper for serializing JSON variants.
Serializer
Serializer for converting Rust types to JSON values.

Functions§

from_value
Converts a JsonValue to a deserializable value of type T.
to_value
Converts a serializable value to a JsonValue.