| 240 | } |
| 241 | |
| 242 | static struct json_stream *jsonrpc_stream_start(struct command *cmd) |
| 243 | { |
| 244 | struct json_stream *js = new_json_stream(cmd, cmd, NULL); |
| 245 | |
| 246 | json_object_start(js, NULL); |
| 247 | json_add_string(js, "jsonrpc", "2.0"); |
| 248 | json_add_string(js, "id", cmd->id); |
| 249 | |
| 250 | return js; |
| 251 | } |
| 252 | |
| 253 | struct json_stream *jsonrpc_stream_success(struct command *cmd) |
| 254 | { |
no test coverage detected