Print map in readable format when display format is set to text (#86)
diff --git a/cmd/output.go b/cmd/output.go index e3815e4..d18458d 100644 --- a/cmd/output.go +++ b/cmd/output.go
@@ -35,7 +35,7 @@ return "" } if reflect.TypeOf(value).Kind() == reflect.Map || reflect.TypeOf(value).Kind() == reflect.Slice { - jsonStr, err := json.Marshal(value) + jsonStr, err := json.MarshalIndent(value, "", "") if err == nil { value = string(jsonStr) }