I need to loop through a certain element in a JSON and then accsess the same position of a other element in the same JSON.
content: {
body: [
{
tag: "question1",
question: "Do you want ...?",
nextTag: ["question2", "question3"],
nextTagDesc: ["yes", "no"],
},
This is my json. I want to map through the content.body[0].nextTag and print the content.body[0].nextTagDesc
Thanks for all help.