Possible Duplicate:
Find object by id in array of javascript objects
So I have this:
mapArray=
[{"Title":"crop_rotation","subs":"5,6,7,10"},
{"Title":"cover_crops","subs":"2,5,7,8,9,13,14"},
{"Title":"binary_wetlands","subs":"1,2,3,4,5,6,7,8,9,10,11"}]
I am trying to access the subs value based on the Title. I am trying
listofSubs=mapArray["crop_rotation"]("subs");
I don't get anything returned. What am I missing here? I need to take that list and convert to a string but I assume it will come out as a string since I have the object already parsed? Thanks in advance