var chassis = {"devices" : []}; // create the object

var x = 0;
while (stuff) { // loop through my data to add to the object
     chassis.devices[x] = {"devicename" : element.getAttribute("DeviceName"), "devicetype" : element.getAttribute("DeviceType")};
works perfect. if i want to recall a particular "devicename" i simply call on chassis.devices[27].devicename and it works.

what i'm wanting to do is search the object to retrieve a particular device and return that device's "id" so i can pull more data.

for example, if i want to know everything about the device named "ABC123" i'd like to search chassis.devices for one that has chassis.devices[i].devicename == "ABC123".