jsonrpc-s: implemented rpc struct_printf() api function