i want get the id of an object in an array by doing this: var lastpost = json[0].id and i get this error: Unhandled Rejection (TypeError): Cannot read property
var lastpost = json[0].id