日期:2014-05-17  浏览次数:20738 次

json的这种结构怎么写呢?新手呀!

{
    "result": [
        [
            "国家",
            "6380226"
        ]
    ],
    "magic": [
        {
            "index": "1",
            "type": "tag",
            "data": [
                "美国",
                "中国",
                "伊朗",
                "朝鲜",
                "阿富汗",
                "印度",
                "日本"
            ]
        }
    ]
}

如何参照这篇帖子里面的结构写出来呢?http://bbs.csdn.net/topics/390694718?page=1#post-396602675

------解决方案--------------------
自己组装字符串
------解决方案--------------------

public class Msg
{
    public string[][] result { get; set; }
    public magic[] magic { get; set; }
}
public class magic
{
    public string index { get; set; }
    public string type { get; set; }
    public string[] data { get; set; }
}