Named parameters in {} parenthesis.

14 views
Skip to first unread message

Kamil Kuchta

unread,
Nov 24, 2014, 3:32:43 AM11/24/14
to json...@googlegroups.com
1. StreamServer is running.

2. Have some service with method public void myMethod(@JsonRpcParam("status")String status);

3. Want to send JSON {"jsonrpc":"2.0", "method":"myMethod", "params":{"status":"asdasd"}}
but there is valid reaction from server. The only reaction is logging "Client connected", "Client disconnected".

4. The proper behaviour of a server, I can obain only sending JSON with "params":["asdasd"]. But I have to handle named parameters in {} parenthesis, not [].

Anyone can help me?
Reply all
Reply to author
Forward
0 new messages