Skip to main content

json

Function json 

Source
pub fn json(value: &impl Serialize) -> Result<(), AppError>
Expand description

Print one result as a single pretty-printed JSON object to stdout.

ยงErrors

AppError::Other when the value cannot be serialized.