if you want to hurt your brain, read this:
https://github.com/nostr-protocol/nips/blob/master/86.md
my reaction to it:
DON'T MAKE JSON RPC FOR ONE FUCKING SHOT REQUEST/RESPONSE
if you actually need stuff lie subscriptions, then ok, use websockets, so clients can hold open a socket and the server can switch roles and send to it
but if it's just query/response fuck off with your bullshit
HTTP fuck you