Skip to content

Commit 6a21591

Browse files
authored
Print map in readable format when display format is set to text (#86)
1 parent 77d334e commit 6a21591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func jsonify(value interface{}) string {
3535
return ""
3636
}
3737
if reflect.TypeOf(value).Kind() == reflect.Map || reflect.TypeOf(value).Kind() == reflect.Slice {
38-
jsonStr, err := json.Marshal(value)
38+
jsonStr, err := json.MarshalIndent(value, "", "")
3939
if err == nil {
4040
value = string(jsonStr)
4141
}

0 commit comments

Comments
 (0)