Olá, como faço para pegar o elemento "name", sendo que ele está dentro de "show" e todo o "show" está dentro do "0"? (OBS: Se a nomenclatura tiver errada, me desculpem, sou iniciante no JS)
0:
score: 31.86105
show:
externals: {tvrage: 18164, thetvdb: 81189, imdb: "tt0903747"}
genres: (3) ["Drama", "Crime", "Thriller"]
id: 169
image: {medium: "http://static.tvmaze.com/uploads/images/medium_portrait/0/2400.jpg", original: "http://static.tvmaze.com/uploads/images/original_untouched/0/2400.jpg"}
language: "English"
name: "Breaking Bad"//quero por em uma variavel
network: {id: 20, name: "AMC", country: {…}}
officialSite: "http://www.amc.com/shows/breaking-bad"
premiered: "2008-01-20"
rating: {average: 9.3}
runtime: 60
schedule: {time: "22:00", days: Array(1)}
status: "Ended"
summary: "<p><b>Breaking Bad</b> follows protagonist Walter White, a chemistry teacher who lives in New Mexico with his wife and teenage son who has cerebral palsy. White is diagnosed with Stage III cancer and given a prognosis of two years left to live. With a new sense of fearlessness based on his medical prognosis, and a desire to secure his family's financial security, White chooses to enter a dangerous world of drugs and crime and ascends to power in this world. The series explores how a fatal diagnosis such as White's releases a typical man from the daily concerns and constraints of normal society and follows his transformation from mild family man to a kingpin of the drug trade.</p>"
type: "Scripted"
updated: 1558526237
url: "http://www.tvmaze.com/shows/169/breaking-bad"
webChannel: null
weight: 93
_links: {self: {…}, previousepisode: {…}}
__proto__: Object
xhr.open('GET', `http://api.tvmaze.com/search/shows?q=${serie}`)
xhr.addEventListener('load', function(){
var api = (xhr.responseText)
var recebidos = JSON.parse(api)
console.log(recebidos)
});
xhr.send()