     $('.attribute').each(function () {
                var name = $('[name=\'attr_name\']', this).val(),
                    val = $('[name=\'attr_value\']', this).val(),
                    desc = $('[name=\'attr_desc\']', this).val();
                if (name && desc) {
                    if (!json.attributes) json.attributes = [];
                    json.attributes.push({
                        name: name,
                        value: val,
                        description: desc.replace(/</g, '&l