Use indent marshaller for JSON results by default
This commit is contained in:
@@ -108,7 +108,7 @@ func (res *Result) CSV() []byte {
|
||||
}
|
||||
|
||||
func (res *Result) JSON() []byte {
|
||||
data, _ := json.Marshal(res.Format())
|
||||
data, _ := json.MarshalIndent(res.Format(), "", " ")
|
||||
return data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user