I have the following data body:
{
"recipients": [
{
"recipient": "test"
}
],
"data": "Text message from client",
"chatType": "single"
}
And, I have this string in my database which we need to use for integration purposes.
"body.recipients[0].recipient"
Is there a way to extract the data requested from this string? I tried with dot notation, also tried to split the string and convert it into an object, but I got stuck on the index id.
The response expected in this case is: "test".
Split the message is not a problem. But i don't know how convert the string index [0] to a valid string.