pub fn to_value<T>(value: T) -> Result<Value>where
T: Serialize,Expand description
Convert a T into serde_json::Value which is an enum that can represent
Equivalent to serde_json::to_value but with errors extended with serde_path_to_error.
See serde_json::to_value for more documentation.