mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Use indent marshaller for JSON results by default
This commit is contained in:
parent
7d81998577
commit
e44e66a8e8
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user