From 4d0cbb776bc783779a8895de369afc81a0f207e6 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Wed, 11 Dec 2013 13:42:29 -0500 Subject: [PATCH] Make id omitemtpy to match spec better. --- jsonapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"` }