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