Starts in both JSON and javascript. I need to return the subAttributeOne key from the list of objects instead of its value.
Below is an example of a list,
var list = [ { attribute1: "value", attribute2:[{subAttributeOne:"value",subAttributeTwo:"value"},{}] },
I tried to follow
list[0].attribute2[1].subAttributeOne
it returns value , but I need the result of subAttributeOne
source share