This commit is contained in:
crusader 2017-11-01 18:36:40 +09:00
parent c03a9b4fe9
commit a8f6ae169e

View File

@ -33,8 +33,8 @@ type clientRequest struct {
// clientResponse represents a JSON-RPC response returned to a client.
type clientResponse struct {
Version string `json:"jsonrpc"`
Result interface{} `json:"result"`
Error error `json:"error"`
Result interface{} `json:"result,omitempty"`
Error error `json:"error,omitempty"`
ID interface{} `json:"id"`
}