jason data
[{"Id":"00k25000006mvRrAAI","Product2Id":"01tD000000365O2IAI","ProductCode":"1100 gw","Name":"1100 Litre Bin (General Waste)","Quantity":"60.0","UnitPrice":"1.2","IsActive":null,"Family":"General Waste","Date":null,"Days":null,"Frequency":null,"Estimated_Delivery_Date__c":"\/Date(-62135596800000)\/"},{"Id":"00k25000006m1l3AAA","Product2Id":"01tD0000003OQxNIAW","ProductCode":"skip 14 yard","Name":"14 Yard Skip (General Waste)","Quantity":"2.0","UnitPrice":"25.0","IsActive":null,"Family":"General Waste","Date":null,"Days":null,"Frequency":null,"Estimated_Delivery_Date__c":"\/Date(-62135596800000)\/"},{"Id":"00k25000006m1l5AAA","Product2Id":"01tD0000003POA1IAO","ProductCode":"fel 12 yard","Name":"12 Yard FEL (General Waste)","Quantity":"3.0","UnitPrice":"12.0","IsActive":null,"Family":"General Waste","Date":null,"Days":null,"Frequency":null,"Estimated_Delivery_Date__c":"\/Date(-62135596800000)\/"},{"Id":"00k25000006m1l6AAA","Product2Id":"01tD0000006mzaVIAQ","ProductCode":"skip 12 yard","Name":"12 Yard Skip (Mixed Recycling)","Quantity":"4.0","UnitPrice":"13.0","IsActive":null,"Family":"Mixed Recycling","Date":null,"Days":null,"Frequency":null,"Estimated_Delivery_Date__c":"\/Date(-62135596800000)\/"}]
<script type="text/javascript">
function get_sbu() {
$.ajax({
type: "GET",
url: "/AmendService/productdetails",
//data: "id=";
success:
});
}
</script>
I want to loop through each jason data and to append it in a dropdown like This
1100 Litre Bin (General Waste) (1100 gw)
<option id="@item.Id|@item.Quantity|@item.Family|@item.Name|@item.UnitPrice|@item.ProductCode" value="@item.Name (@item.ProductCode)" />