ini adalah response dari fetch api
{
  "from": "6289505046093@c.us",
  "fromMe": false,
  "body": "halo gaes",
  "hasMedia": false,
  "type": "chat",
  "to": "6289697338821@c.us",
  "deviceType": "android",
  "media": {
    "data": null,
    "mimetype": null,
    "filename": null,
    "filesize": null
  },
  "notifyName": "jenna ai"
}

saya ingin mengambil data dynamic dari response tersebut menggunakan string

function getData(responseJson, key){

}