pub async fn to_common_result<T: Serialize>(result: Result<T>) -> CliResult
For pretty printing outputs in JSON