根据你的JSON。我想是这样的
const rawData = { 0: { artist: "Some name", track: "Some track" }, 1: { artist: "Some name - 2", track: "Some track - 2" } }; const artists = Object.values(rawData).map(obj => obj.artist); console.log(artists);