$.post("./bigData.php", {'username': username}, function(response) {
console.log(response);
var bigUser = response[username]; // first attempt
var bigUser2 = username.response; // second attempt
});
When I check my response
, it looks like this:
{"userSumData":[{"id":"slz1","checked":false},{"id":"slz2","checked":false},{"id":"slz3","checked":false},{"id":"slz4","checked":false}, ....."Map":true}
I am aiming for the following output:
{"steven":{"userSumData":[{"id":"slz1","checked":false},{"id":"slz2","checked":false},{"id":"slz3","checked":false},{"id":"slz4","checked":false}, ....."Map":true}}
Despite attempts with dot notation and square brackets after retrieving my response
, the data keeps getting cleared.