pub fn to_value<T>(value: T) -> Result<Value<'static>>where T: Serialize,
convert anything implementing Serialize into a Value using our own Serializer.
Serialize
Value
Serializer
if the given value cannot be serialized