it is quite simple...
var obj = {_x000D_
"set1": [1, 2, 3],_x000D_
"set2": [4, 5, 6, 7, 8],_x000D_
"set3": [9, 10, 11, 12]_x000D_
};_x000D_
_x000D_
jQuery.each(obj, function(i, val) {_x000D_
console.log(i); // "set1"_x000D_
console.log(val); // [1, 2, 3]_x000D_
});
_x000D_
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
_x000D_