commands: Indent JSON-marshalled Response output
Matt Bell committed
Nov 8, 2014 at 20:19 UTC
20285ead82384d87145994548dd4e18ac1f5629e
1 file changed
+2
-2
commands/response.go
+2
-2
@@ -43,9 +43,9 @@ const (
43
var marshallers = map[EncodingType]Marshaller{
44
JSON: func(res Response) ([]byte, error) {
45
if res.Error() != nil {
46
- return json.Marshal(res.Error())
46
+ return json.MarshalIndent(res.Error(), "", " ")
47
}
48
- return json.Marshal(res.Output())
48
+ return json.MarshalIndent(res.Output(), "", " ")
49
},
50
XML: func(res Response) ([]byte, error) {
51
if res.Error() != nil {