我想輸出JSON格式的這個循環C#asp.net刪除最後一個逗號
[{
@foreach (var urun in Model.urunler.Where(u => u.Id == item.uid).ToList())
{
<text>,"id":"@item.id","urunadi":"@urun.urunadi"</text>
}
},] delete this last comma
我想輸出: [{},{},{}]刪除此最後一個字符
並非really clear你are asking what ....... –
我want到delete此last comma。 – dfred
請提供輸入,什麼是「這個」? – Berkay