diff --git a/jsonapi.go b/jsonapi.go index a5c0c594..d56c531c 100644 --- a/jsonapi.go +++ b/jsonapi.go @@ -13,7 +13,7 @@ import ( // Message contains a message to be sent to the bitcoin client. type Message struct { Jsonrpc string `json:"jsonrpc"` - Id interface{} `json:"id"` + Id interface{} `json:"id,omitempty"` Method string `json:"method"` Params interface{} `json:"params"` }