fix: fix JSON output indent

pull/236/head
stevenlele 1 year ago
parent 25699b07c5
commit d12823c3f8
  1. 2
      browsingdata/outputter.go

@ -32,7 +32,7 @@ func (o *outPutter) Write(data Source, writer io.Writer) error {
switch o.json { switch o.json {
case true: case true:
encoder := json.NewEncoder(writer) encoder := json.NewEncoder(writer)
encoder.SetIndent(" ", " ") encoder.SetIndent("", " ")
encoder.SetEscapeHTML(false) encoder.SetEscapeHTML(false)
return encoder.Encode(data) return encoder.Encode(data)
default: default:

Loading…
Cancel
Save