Is it possible to loop through a data set of objects as associative arrays?
I have a bunch of JSON data, and would like to loop through all of the data sets and pull out a property in each object.
for example:
for ( var i = 0; i <= 20; i++){
var oblivion = i;
var myObject = new MYobject( oblivion);
oblivionLoader(myObject);
}
function oblivionLoader(myObject)
{
for ( i = 1; i<=2; i++)
{
var changer = myObject.oblivion[i];
var infoText = GetDetailsText(changer);
infoText.html(myObject.toString());
}
}
If this is possible please show me how. Otherwise I am concluding it is impossible...