to_json_string

Function to_json_string 

Source
pub fn to_json_string<T: Serialize + ?Sized>(
    data: &T,
    context: &str,
) -> Result<String>
Expand description

Generic JSON serialization with consistent error handling Works with any type that implements Serialize (including slices)