I am new to json and arrays and objects. So this may be a very trivial doubt. I have an array of the structure:
[{
"A": {"key11": 10, "key12": 20, "key13": 30},
"B": {"key21": 10, "key22": 20},
"C": {"key31": 10, "key32": 20, "key33": 30, "key34": 40}
}]
I am accessing the data via an ajax call:
$.ajax({
url : 'somepath/fileName.json',
dataType : 'json',
async : false,
type : 'get',
success : function(data)
{
MyData = data;
},
error : function() {
alert("error");
}
});
Now my MyData contains an Object of the above mentioned data. I need to access A,B,C but my question is whether its possible to access them using positions? Kindly help. Thanks :)