Json result on void

May 11, 2016 at 11:57 AM
Edited May 11, 2016 at 12:10 PM

Library return json object {"jsonrpc": "2.0", "id":1} if function return type is void. I think its wrong answer. The answer must be {"jsonrpc": "2.0", "id":1, "result":null} or {"jsonrpc": "2.0", "id":1, "result":{}}.

JSON RPC 2.0 standart:
    This member is REQUIRED on success.

Either the result member or error member MUST be included, but both members MUST NOT be included.
So you can see that if function has no error then is successed, and it REQUIRED to have result. Please tell me if i wrong.