apps/jsonrpc: bug fixes

- error member cannot exist if there was no error
- id member must be of same type in response as it was in request
- id cannot be bool