Retrieves the value of a single key from a map, returning a fallback default if the key does not exist.
lookup(map: map, key: string, default: any) -> any
Returns the documented result for the function signature.
respond { status = 200 body = { role = lookup(ctx.request.body, "role", "standard_user") } }