Tôi cần tạo một json tùy chỉnh cho thư viện the jit. Tôi có nên sử dụng thêm C# logic hoặc bằng cách nào đó để mở rộng JsonSerializer. Json nên như thế này ->JIT. Cách tốt nhất để tuần tự hóa thành json
var json = {
"children": [
{
"children": [
{
"children": [],
"data": {
"playcount": "276",
"$color": "#8E7032",
"image": "http://userserve-ak.last.fm/serve/300x300/11403219.jpg",
"$area": 276
},
"id": "album-Thirteenth Step",
"name": "Thirteenth Step"
}
}]
}
bạn đã thử này - http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx –
vâng nhưng tôi cần thêm tùy chỉnh json – Alexandr