(Apologies if the title is unclear, I struggled to phrase it accurately)
I am attempting to retrieve a response from an API, however, the API is returning multiple responses with the same name. Example of a response:
{
"xuid": 2535436668322645,
"state": "Online",
"devices": [
{
"type": "XboxOne",
"titles": [
{
"id": 714681658,
"name": "Home",
"placement": "Background",
"state": "Active",
"lastModified": "2016-11-22T23:45:08.8296994Z"
},
{
"id": 74304278,
"activity": {
"richPresence": "Lvl 30 in Hudson Yards"
},
"name": "Tom Clancy's The Division",
"placement": "Full",
"state": "Active",
"lastModified": "2016-11-22T23:45:08.8296994Z"
}
]
}
]
}
My question is, how can I extract the ID from the "second" response using JavaScript? (Referring to the one with "Tom Clancy's The Division" in the name) Thanks!