How to get attributes?
... var attributesGroup = $.parseJSON($(".js-product-details").attr("data-product")).attributes; var attributeGroupAndName = []; var valSep = ' : '; for (var key in attributesGroup) { attributeGroupAndName.push(' ' + attributesGroup[key].group + valSep + attributesGroup[key].name); } console.log(attributeGroupAndName.join(', '); /* Color : Red, Size : XXL */