Update server response JSON structure to match JSON RPC 2.0 specification.

result and error members should be omitted if not applicable.