numam-spdk/lib/jsonrpc
Jan Kryl 59339feac3 jsonrpc: tolerate null json value for parameters in json-rpc call
Rust lang has notion of empty value `()` which is translated to json null
value using serialization library like serde. Thus it means that jsonrpc
methods having no parameters translate to parameters with null value (as
opposed to a request without parameter member as it is done now in spdk).
This change handles null parameter gracefully instead of returning an
error - improving interoperability with such clients.

Signed-off-by: Jan Kryl <jan.kryl@mayadata.io>
Change-Id: I8c3cc5613582aebb10ac6eaee3ac4e6538aaa0b1
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463171
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-07-26 19:30:57 +00:00
..
jsonrpc_client_tcp.c jsonrpc client: non-blocking mode 2018-12-07 09:41:03 +00:00
jsonrpc_client.c jsonrpc client: non-blocking mode 2018-12-07 09:41:03 +00:00
jsonrpc_internal.h jsonrpc: always allocate response for request 2019-07-19 20:56:54 +00:00
jsonrpc_server_tcp.c lib/jsonrpc: Fix memory leaks about connection request. 2019-06-26 06:26:50 +00:00
jsonrpc_server.c jsonrpc: tolerate null json value for parameters in json-rpc call 2019-07-26 19:30:57 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00