Hi,
according to the examples in the jsonrpc spec (
www.jsonrpc.org/specification#examples) the id of the response need to be the same type as the id from the request, i.e. there's a difference between:
--> {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1}
<-- {"jsonrpc": "2.0", "result": 19, "id": 1}
and
--> {"jsonrpc": "2.0", "method": "foobar", "id": "1"}
<-- {"jsonrpc": "2.0", "error": {"code": -32601, "message": "Method not found."}, "id": "1"}
However in the jsonrpc4j implementation the id is always handled as a string and therefore both "id": "1" (string) and "id": 1 (numeric) get
a "id":"1" (string) in their response.
I appended a patch against rev. 238581 to fix this problem. Could you consider this for your next release?
Best Wishes
Eduard