var url_string = '/index.php/dvs/get_dvs/' + id + '/';
$.ll = {};
$.ll.dvs_data = {};
$.post(url_string,{},
function (data)
{
$.each(data.dvs, function(k,v) {
$.each(v, function(dvs_name, dvs_value) {
$.ll.dvs_data[dvs_name] = dvs_value;
});
});
}, "json");
var test = $.ll.dvs_data;
console.log(test['username']);
console.log(test.username);
console.log(test);
The above is part of some other code, the data is being received as console.log(test) displays the object in firebug (firefox) however I am unable to access the test.username or test['username] objects, they just get returned as undefined