Function serde::json::value::to_value [] [src]

pub fn to_value<T>(value: &T) -> Value where T: Serialize

Shortcut function to encode a T into a JSON Value