Hello,
I have following object of objects:
var xmlObject = {"@attributes":{"id":"3","name":"Cell"},
"image":"img1.jpg",
"linkItem":[
{"@attributes":{"itemType":"reaction","itemId":"1","itemName":"O2 bubble exchange"},"area":[{"@attributes":{"width":"50","height":"250","top":"0","left":"150"}},{"@attributes":{"width":"100"," height":"250","top":"100","left":"150"}}],"point":[{"@attributes":{"top":"200","left":"20"}},{"@attributes":{"top":"20","left":"200"}}]},
{"@attributes":{"itemType":"entity","itemId":"1","itemName":"CO2"},"area":[{"@attributes":{"width":"100","height":"250","top":"30","left":"250"}},{"@attributes":{"width":"10", "height":"50","top":"300","left":"150"}}],"point":{"@attributes":{"top":"200","left":"200"}}
}]};

now the thing is that I dont really understand, how to operate with this kind of object.
select problem:
var x = xmlObject.linkItem[itemId = 1]; works fine , but
var x = xmlObject.linkItem[itemType = "reaction"]; is not working ... %) why ?

add object to object problem(e.g. area to specified linkItem):
how to add object to object ? or just changing attributes of existing object in object (e.g. change width of specified area in specified item)?

I understand objects in javascript, but nested objects are quite different :/

Thanx a lot for some post