diff --git a/protocol/json/client_response.go b/protocol/json/client_response.go index 5c53b1a..eddb1da 100644 --- a/protocol/json/client_response.go +++ b/protocol/json/client_response.go @@ -70,6 +70,7 @@ func newClientResponseCodec(r io.Reader, codec codec.Codec) (protocol.ClientResp if nil == r { return nil, io.EOF } + decoder.UseNumber() res := &clientResponse{} err := decoder.Decode(res) diff --git a/protocol/json/server_request.go b/protocol/json/server_request.go index 9f0d955..a446101 100644 --- a/protocol/json/server_request.go +++ b/protocol/json/server_request.go @@ -42,6 +42,7 @@ func newServerRequestCodec(r io.Reader, codec codec.Codec) (protocol.ServerReque if nil == r { return nil, io.EOF } + decoder.UseNumber() req := &serverRequest{} err := decoder.Decode(req)