本帖最后由 lei291315164 于 2009-07-23 10:38:15 编辑

解决方案 »

  1.   

    用json来解析是正确的,只是你自己害怕去定义这个class。
    你就直接问是QQ开心农场的数据嘛。我定义了一个类,供你参考,但有时候要特殊处理一下,不要这些简单的特殊的处理都不会,那我就无语了,另外不要做坏事哦!        public farmlandStatus()
            {
     
            }
            private int _a;
            public int a
            {
                get{return _a; }
                set { _a=value ;}
            }        private int _b;
            public int b
            {
                get { return _b; }
                set { _b = value; }
            }        private int _c;
            public int c
            {
                get { return _c; }
                set { _c = value; }
            }        private int _d;
            public int d
            {
                get { return _d; }
                set { _d = value; }
            }
            private int _e;
            public int e
            {
                get { return _e; }
                set { _e = value; }
            }
            private int _f;
            public int f
            {
                get { return _f; }
                set { _f = value; }
            }
            private int _g;
            public int g
            {
                get { return _g; }
                set { _g = value; }
            }
            private int _h;
            public int h
            {
                get { return _h; }
                set { _h= value; }
            }
            private int _i;
            public int i
            {
                get { return _i; }
                set { _i= value; }
            }
            private int _j;
            public int j
            {
                get { return _j; }
                set { _j = value; }
            }
            private int _k;
            public int k
            {
                get { return _k; }
                set { _k= value; }
            }
            private int _l;
            public int l
            {
                get { return _l; }
                set { _l = value; }
            }
            private int _m;
            public int m
            {
                get { return _m; }
                set { _m = value; }
            }        private Dictionary<string, int > _n;
            public Dictionary<string, int > n
            {
                get { return _n; }
                set { _n = value; }
            }
            //private string[] _n;
            //public string[] n
            //{
            //    get { return _n; }
            //    set { _n = value; }
            //}        private int _o;
            public int o
            {
                
                get { return _o; }
                set { _o= value; }
            }        private Dictionary<string, int  [] > _p;
            public Dictionary<string, int   []> p
            {
                get { return _p; }
                set { _p = value; }
            }
            private int _q;
            public int q
            {
                get { return _q; }
                set { _q = value; }
            }
            private int _r;
            public int r
            {
                get { return _r; }
                set { _r = value; }
            }    }
        public class ppp
        {
            public ppp()
            {
     
            }
        }