diff options
Diffstat (limited to 'modules/rpc/jsonrpc.cpp')
-rw-r--r-- | modules/rpc/jsonrpc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/rpc/jsonrpc.cpp b/modules/rpc/jsonrpc.cpp index ad496708a..5d4dc3c77 100644 --- a/modules/rpc/jsonrpc.cpp +++ b/modules/rpc/jsonrpc.cpp @@ -190,6 +190,8 @@ public: auto *result = SerializeElement(doc, request.GetRoot().value()); yyjson_mut_obj_add_val(doc, root, "result", result); } + else + yyjson_mut_obj_add_null(doc, root, "result"); yyjson_mut_obj_add_str(doc, root, "jsonrpc", "2.0"); |