If I have the following DOM elements
content1 content2
how, usi
var data = $('div.item').map(function(){ return { classname: 'item', content: $(this).text() }; }).get();
DEMO: http://jsfiddle.net/nDE7e/