Use spaces instead of tab for JSON marshal indent

The jsoniterator library believes that panic() is a reasonable
response to being told to indent JSON with a tab. So use spaces
instead.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
Matthew Heon
2019-03-26 10:03:02 -04:00
parent 589486e3e5
commit 179a66f1a0

View File

@ -646,7 +646,7 @@ func printFormat(format string, containers []shared.PsContainerOutput) error {
}
func dumpJSON(containers []shared.PsContainerOutput) error {
b, err := json.MarshalIndent(containers, "", "\t")
b, err := json.MarshalIndent(containers, "", " ")
if err != nil {
return err
}