Skip to content

Commit

Permalink
ooops... we want pretty-printed JSON, not pretty-printed debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Apr 6, 2024
1 parent ebc7287 commit ba3fd4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/fetchpost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit ba3fd4a

Please sign in to comment.