From ba3fd4a9f8f5f03c7ba75e8e4e729ddc01fce438 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sat, 6 Apr 2024 09:49:04 -0400 Subject: [PATCH] ooops... we want pretty-printed JSON, not pretty-printed debug output --- src/cmd/fetch.rs | 2 +- src/cmd/fetchpost.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/fetch.rs b/src/cmd/fetch.rs index ae59a803d..160560df6 100644 --- a/src/cmd/fetch.rs +++ b/src/cmd/fetch.rs @@ -1278,7 +1278,7 @@ fn get_response( match api_value_json_result { Ok(api_value_json) => { if flag_pretty { - final_value = format!("{api_value_json:#?}"); + final_value = format!("{api_value_json:#}"); } else { // use serde_json CompactFormatter to minify the JSON final_value = format!("{api_value_json}"); diff --git a/src/cmd/fetchpost.rs b/src/cmd/fetchpost.rs index 3ad482459..a73cfe869 100644 --- a/src/cmd/fetchpost.rs +++ b/src/cmd/fetchpost.rs @@ -1221,7 +1221,7 @@ fn get_response( match api_value_json_result { Ok(api_value_json) => { if flag_pretty { - final_value = format!("{api_value_json:#?}"); + final_value = format!("{api_value_json:#}"); } else { // use serde_json CompactFormatter to minify the JSON final_value = format!("{api_value_json}");