From a8f6ae169ea4168baf8f4d3a969393e2694f5d1b Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 1 Nov 2017 18:36:40 +0900 Subject: [PATCH] ing --- protocol/json/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/json/client.go b/protocol/json/client.go index 0707904..33f9f30 100644 --- a/protocol/json/client.go +++ b/protocol/json/client.go @@ -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"` }