Lines Matching refs:json
5 // Package jsonrpc implements a JSON-RPC ClientCodec and ServerCodec
10 "encoding/json"
19 dec *json.Decoder // for reading JSON values
20 enc *json.Encoder // for writing JSON values
27 // JSON-RPC responses include the request id but not the request method.
35 // NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn.
38 dec: json.NewDecoder(conn),
39 enc: json.NewEncoder(conn),
46 Method string `json:"method"`
47 Params [1]interface{} `json:"params"`
48 Id uint64 `json:"id"`
62 Id uint64 `json:"id"`
63 Result *json.RawMessage `json:"result"`
64 Error interface{} `json:"error"`
103 return json.Unmarshal(*c.resp.Result, x)
116 // Dial connects to a JSON-RPC server at the specified network address.