Why \n is appending to the value after JSON.stringify. Here is the example link
var formData = new Array();
if ($(this).get(0).tagName.toUpperCase() === 'DIV' ){
content = $(this).html();
}
alert(JSON.stringify(formData));
Note: Content in the Div is dynamic and I don't have any control on what is displaying there. I should use .html() to get the data in Div