I have a list of JSON objects returned from an AJAX request:
Object {id: 1, name: "Ben Roethlisberger"}
Object {id: 2, name: "Antonio Brown"}
Object {id: 3, name: "Le'Veon Bell"}
I can access name from a single object with the following
e.data.name
Is there any way I can retrieve the very last object from the list, and grab that object's name?
json[json.length - 1].