|
|
@ -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: |
|
|
|