| 427 | } |
| 428 | |
| 429 | static struct json_stream *jsonrpc_stream_start(struct command *cmd) |
| 430 | { |
| 431 | struct json_stream *js = new_json_stream(cmd, cmd, NULL); |
| 432 | |
| 433 | json_object_start(js, NULL); |
| 434 | json_add_string(js, "jsonrpc", "2.0"); |
| 435 | json_add_id(js, cmd->id); |
| 436 | |
| 437 | return js; |
| 438 | } |
| 439 | |
| 440 | struct json_stream *jsonrpc_stream_success(struct command *cmd) |
| 441 | { |
no test coverage detected