get value of second data which has the same name as first data with javascript

so I have this json

[
  {
    id: 123
  },
  {
    id: 456
  }
]

and I am trying to get the value with javascript of the second id which has a value of 456, but I have no idea how to because it doesnt have a specified parent by which I could get it.