Genesys webhook payload structure in Node.js Lambda

Trying to parse a Genesys Cloud routing.queue.member.added webhook in a Node.js Lambda. The event.body is a string, not an object, so JSON.parse throws on malformed data. How do I safely extract the divisionId?

try {
const body = JSON.parse(event.body);
console.log(body.divisionId);
} catch (e) {
console.error(‘parse failed’, e);
}