| 715 | } |
| 716 | |
| 717 | static struct json_stream *json_start(struct command *cmd) |
| 718 | { |
| 719 | struct json_stream *js = json_stream_raw_for_cmd(cmd); |
| 720 | |
| 721 | json_object_start(js, NULL); |
| 722 | json_add_string(js, "jsonrpc", "2.0"); |
| 723 | json_add_id(js, cmd->id); |
| 724 | return js; |
| 725 | } |
| 726 | |
| 727 | struct json_stream *json_stream_success(struct command *cmd) |
| 728 | { |
no test coverage detected