. , :
-? HTML , JSON.
CPU -? HTML DOM innerHTML.
-? "" HTML . , XML JSON, ( ).
JSON JS/jQuery .
:, , JSON
var json = {"features": [{
"comparisonFeatureId": 1182,
"comparisonFeatureType": "Category",
"comparisonValues": [ "Not Available", "Standard", "Not Available", "Not Available" ],
"featureDescription": "Rear Seat Heat Ducts"
}, {
"comparisonFeatureId": 1183,
"comparisonFeatureType": "Category",
"comparisonValues": [ "Not Available", "Standard", "Not Available", "Not Available" ],
"featureDescription": "Some Description"
}]};
,
<table id="table"></table>
jQuery script, ,
$.each(json.features, function(i, feature) {
var row = $('<tr class="alt2 section_1">').appendTo($('#table'));
row.append($('<td>').append($('<strong>').text(feature.featureDescription)));
$.each(feature.comparisonValues, function(j, comparisonValue) {
row.append($('<td>').text(comparisonValue));
});
});