[Solved] how i get title from following response [closed]


Assuming your JSON is assigned to a variable called response you can access the body with:
let body = response.data.data[0].body

And the title with
let title = response.data.data[0].title

In case you want to loop over the data array in order to get a value for all entries (e.g. title), try this:
let titles = response.data.data.forEach(entry => console.log(entry.title));

0

solved how i get title from following response [closed]