pub fn json(value: &impl Serialize) -> Result<(), AppError>
Print one result as a single pretty-printed JSON object to stdout.
AppError::Other when the value cannot be serialized.
AppError::Other