| 437 | } |
| 438 | |
| 439 | static struct json_stream *jsonrpc_stream_start(struct command *cmd) |
| 440 | { |
| 441 | struct json_stream *js = new_json_stream(cmd, cmd, NULL); |
| 442 | |
| 443 | json_object_start(js, NULL); |
| 444 | json_add_string(js, "jsonrpc", "2.0"); |
| 445 | json_add_id(js, cmd->id); |
| 446 | |
| 447 | return js; |
| 448 | } |
| 449 | |
| 450 | struct json_stream *jsonrpc_stream_success(struct command *cmd) |
| 451 | { |
no test coverage detected