core/json-rpc: Add JSON RPC frontend