I am using an AJAX GET request to obtain a javascript object. Serverside, it is a hashmap that consists of a String and an ArrayList of Strings. Inside the success function, I am using a for-in loop to access the data that looks like this at the moment (console.log for debugging):
for (var key in content) {
if (content.hasOwnProperty(key)) {
console.log(key);
}
}
It displays the key correctly, but how can I access the array associated with it? If I output the response to the console, it shows "KEY: Array[13]", and I can expand it to see the contents of the array.