RPC returns pretty formated json

This commit is contained in:
Ethan Frey
2017-05-13 11:33:35 +02:00
parent 157ec8af2d
commit 2b324b7eb9
2 changed files with 3 additions and 3 deletions

View File

@ -539,7 +539,7 @@ func (wsc *wsConnection) writeRoutine() {
return
}
case msg := <-wsc.writeChan:
jsonBytes, err := json.Marshal(msg)
jsonBytes, err := json.MarshalIndent(msg, "", " ")
if err != nil {
wsc.Logger.Error("Failed to marshal RPCResponse to JSON", "error", err)
} else {