We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d334e commit 6a21591Copy full SHA for 6a21591
cmd/output.go
@@ -35,7 +35,7 @@ func jsonify(value interface{}) string {
35
return ""
36
}
37
if reflect.TypeOf(value).Kind() == reflect.Map || reflect.TypeOf(value).Kind() == reflect.Slice {
38
- jsonStr, err := json.Marshal(value)
+ jsonStr, err := json.MarshalIndent(value, "", "")
39
if err == nil {
40
value = string(jsonStr)
41
0 commit comments