pub fn stringify<T>(value: &T, pretty: bool) -> Result<String>where T: Serialize,
Serialize a value to a JSON string.