如何在我的 .NET 应用程序中使用谷歌可视化 api json 格式的数据?目前无法想象如何使用这些数据。
我必须自己将json解析为对象吗?我可以使用Json.NET反序列化它吗?现在我不知道如何开始。任何帮助表示赞赏。
数据如下所示:
{
cols: [
{id: '1', label: 'Name', type: 'string'},
{id: '2', label: 'Age', type: 'number'},
{id: '3', label: 'Birthdate', type: 'date'}
],
rows: [
{c:[{v: 'Dan'}, {v: 18.0, f: 'eighteen'}, {v: new Date(2008, 1, 28, 0, 31, 26), f: '2/28/08 12:31 AM'}]},
{c:[{v: 'Frank'}, {v: 19.0, f: 'nineteen'}, {v: new Date(2008, 2, 30, 0, 31, 26), f: '3/30/08 12:31 AM'}]},
{c:[{v: 'Esther'}, {v: 20.0, f: 'twenty'}, {v: new Date(2008, 3, 30, 0, 31, 26), f: '4/30/08 12:31 AM'}]}
]
}