export function ok(request, result) {
    return { jsonrpc: "2.0", id: request.id ?? null, result };
}
export function error(request, code, message) {
    return { jsonrpc: "2.0", id: request.id ?? null, error: { code, message } };
}
