$('.showjson').on('click',function(){
if($('.customerlist .customeritem').length==0) return;
var temp=[];
var t;
$('.customerlist .customeritem').each(function(index,element){
t = $(this).children();
temp.push({"type":$(t[2]).data('type'),"title":$(t[0]).data('title')});
})
console.log(temp);
$('.console').html(JSON.stringify(temp))
})