pub fn to_value<T: Serialize + ?Sized>(value: &T) -> Result<Value, SerdeError>
value as a JSON value.
value