dumpd_value

Function dumpd_value 

Source
pub fn dumpd_value<T: Serialize>(obj: &T) -> Result<Value>
Expand description

Serialize any serde-serializable object to a Value.

This is a fallback for objects that don’t implement Serializable.

§Arguments

  • obj - The object to serialize.

§Returns

A serde_json::Value representation of the object.

§Errors

Returns an error if serialization fails.