var series = new Array(); var map = response.extend.map; $.each(map, function (key,values) { series.push({"name":key,"data":values}); }); series: series