This example illustrates the typical life-cycle of a JSON-RPC 2.0 request.
- Client side: Create new request
- Client side: Serialise request to string and send
- Server side: Parse received string back to request object
- Server side: Get the request data
- Server side: Create a response
- Server side: Serialise response to string and send back
- Client side: Parse received string back to response object
- Client side: Check the response for success, get the result / error