| 1600 | } |
| 1601 | |
| 1602 | void jsonrpc_request_end(struct jsonrpc_request *r) |
| 1603 | { |
| 1604 | json_object_end(r->stream); /* closes '.params' */ |
| 1605 | json_object_end(r->stream); /* closes '.' */ |
| 1606 | |
| 1607 | /* We guarantee to have \n\n at end of each response. */ |
| 1608 | json_stream_append(r->stream, "\n\n", strlen("\n\n")); |
| 1609 | } |
| 1610 | |
| 1611 | static struct command_result *json_check(struct command *cmd, |
| 1612 | const char *buffer, |
no test coverage detected