serde::json

Function to_value

source
pub fn to_value<T>(value: &T) -> Result<JsonValue, JsonSerializationError>
where T: Serialize,
Expand description

Serialize a value of type T to a JsonValue.