So a two part question, because I can't solve the first problem, and the hacky work around isn't seeming to work either.
I have a JSON object, and within that object is nested object. I want to manipulate something within a deep layer array.
So to start with, I need to learn how to iterate over keys in an object, but I can't see how you do it.
Say I have an object with objects within it, how do I iterate over these? If it were an array I would do
for (i = 0; i < arrayLength; i++)
{console.log(array[i])}
But, because they're words, I can't just i++, so I made an array of the words, then wanted to do the same as above, but
for (i = 0; i < arrayLength; i++)
{console.log(jsonObject.array[i]}
, but this isnt seeming to work, I just get undefined returned.
Apologies for the poor explaination.