Skip to main content

to_json

Function to_json 

Source
pub fn to_json<T>(value: &T) -> Value
where T: Serialize,
Expand description

Serialize a value to a JSON serde_json::Value, falling back to Null on error.