Make id omitemtpy to match spec better.

This commit is contained in:
John C. Vernaleo 2013-12-11 13:42:29 -05:00
parent 621f9006bf
commit 4d0cbb776b

View file

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