skip to Main Content

Javascript – NODEJS Object Value Is a Key Value Pair

I have a request I receive through a webhook which returns the following object as req.body: {"appId":"7HPEPVBTZGDCP","merchants":{"6RDH804A896K1":[{"objectId":"O9FN4R9BMKXQ0","type":"UPDATE","ts":1686754357822},{"objectId":"OE87DT9330H7R","type":"UPDATE","ts":1686754358007}]}} The issue i am having is although I can access the merchants through req.body.merchants, that is a key/value pair with the key being…

VIEW QUESTION
Back To Top
Search