sharkd: Align the API with JSON-RPC 2.0
Description
There are some inconsistencies in the format of sharkd API requests and responses.
The changes I’d like to make to sharkd:
- Align the request formats with JSON-RPC
- Add support for userid and agent options to be included in the request
- I won’t pursue the session request idea as it’s not now needed
- Align the response formats with JSON-RPC
- Add responses for the requests that currently don’t generate a response
- Continue operation after all request errors
- Some errors cause sharkd to exit