Would the following be considered legal in JSON-RPC v 2.0?
{"jsonrpc": "2.0", "target":"xyzzy", "method": "update", "params": [1,2,3,4,5], "id":25}
As you might guess, the use case is specifying a destination node for a request. I don't see anything the the spec that forbids adding fields to a request, yet that restriction may be implied.
Of course another approach is to wrap the whole thing:
{"target":"xyzzy", {"jsonrpc": "2.0", "method": "update", "params": [1,2,3,4,5], "id":25}}
but I find it a little odd that the id field is now at a different level than the target field, since both items are engaged in handling routing and responses.
What's the approved approach?