我在 VB.NET 中有这个功能
Dim dt = (From d In db.d ...).ToArray()
Return New With {
.label = "label",
.data = dt.ToArray()
}
以 JSON 格式返回以下数据
{
"label":"label",
"data":[
{"date":1366657400000,"value":12051},
{"date":1366657397000,"value":12102},
{"date":1366646820000,"value":12099}
]
}
如何以以下格式返回数据
{
"label":"label",
"data":[
[1366657400000,12051],
[1366657397000,12102],
[1366646820000,12099]
]
}