'Unable to read specific JSON keys in my lambda function

Having this undefined issue in my node lambda function here is the code

exports.handler = async function (event, context) {
console.log('top')
console.log(event.body)
console.log(event.body.value)
console.log('bottom')

return {
    statusCode: 200,
    body: JSON.stringify(event)
} }

And here is a cloud watch screenshot

Screenshot

Im new to lambda and post requests so any help as to the value key is much appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source