Skip to content

Commit

Permalink
refactor(cli.go): replace json.Marshal with json.MarshalIndent for be…
Browse files Browse the repository at this point in the history
…tter readability of output JSON
  • Loading branch information
bounoable committed Feb 21, 2024
1 parent 6cfb4b5 commit b886a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (app *App) Run() {
}
dragoman.JSONMerge(originalOutMap, resultMap)

marshaled, err := json.Marshal(originalOutMap)
marshaled, err := json.MarshalIndent(originalOutMap, "", " ")
if err != nil {
app.kong.FatalIfErrorf(err, "failed to marshal result map")
}
Expand Down

0 comments on commit b886a08

Please sign in to comment.