This is probably a very basic problem, as I'm a javascript beginner.
I've got an object which console.log describes as the following :
As you can see, it holds a certain amount of data.
But when I try to display it as JSON on an HTML page using JSON.stringify, the only thing that displays is this :
[[],[],[],[],[],[],[],[],[]]
Which is very weird, because if instead of JSON.stringify, I do for example this :
div.innerHTML = myObject[0].ArmyName;
....well I get "ARMY_1" to display. So the object is correctly populated. But if I do
div.innerHTML = JSON.stringify(myObject)
or
div.innerHTML = JSON.stringify(myObject[0])
then I only get null / empty data to display.
Am I doing something wrong ?
