var mapObjects = $('#placeholdSlots div').map(function (i, n) {
var awardId = $(n).find('.dropped').attr('id');
var itemType = $(n).find('.dropped').attr('data');
var obj = {};
obj['itemId'] = parseInt(awardId) || "";
obj['type'] = itemType || ""
return obj;
});
console.log(JSON.stringify(mapObjects));
Any idea why I can't json.stringify my object? The last line return an error of
Uncaught TypeError: Converting circular structure to JSON
For me it look fine :

I didn't see any circular reference problem with my object..
$.map(),$.fn.map()returningjQuery.fn()?