I want to store JSON Object into a variable and format it into this ex. (JAN_2018, FEB_2018, etc.) and the other is ex. (1081136328, 1069248328, etc.)

MY CODE:
var json = $.parseJSON(data);
$(json).each(function(i,val){
$.each(val,function(k,v){
console.log(k);
console.log(v);
});
});
I want to put the data (k and v) to a variable and format it to variable 1 =(JAN_2018, FEB_2018, etc.) and variable 2 = (1081136328, 1069248328, etc.)