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. // clientResponse represents a JSON-RPC response returned to a client.
type clientResponse struct { type clientResponse struct {
Version string `json:"jsonrpc"` Version string `json:"jsonrpc"`
Result interface{} `json:"result"` Result interface{} `json:"result,omitempty"`
Error error `json:"error"` Error error `json:"error,omitempty"`
ID interface{} `json:"id"` ID interface{} `json:"id"`
} }