From d12823c3f863c27e2d7f68fd26427f6e27c6fc2a Mon Sep 17 00:00:00 2001 From: stevenlele Date: Thu, 3 Aug 2023 15:15:22 +0800 Subject: [PATCH] fix: fix JSON output indent --- browsingdata/outputter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browsingdata/outputter.go b/browsingdata/outputter.go index 3de846d..107dca5 100644 --- a/browsingdata/outputter.go +++ b/browsingdata/outputter.go @@ -32,7 +32,7 @@ func (o *outPutter) Write(data Source, writer io.Writer) error { switch o.json { case true: encoder := json.NewEncoder(writer) - encoder.SetIndent(" ", " ") + encoder.SetIndent("", " ") encoder.SetEscapeHTML(false) return encoder.Encode(data) default: