예제 #1
0
        public static string GetTrees(string text)
        {
            JSONObject    json = JSONConvert.DeserializeObject(text);
            StringBuilder sb   = new StringBuilder();

            foreach (var item in json)
            {
            }
            return(null);
        }
예제 #2
0
        public static QQInfoCard  GetQQInfoCard(string text)
        {
            JSONObject json = JSONConvert.DeserializeObject(text);
            JSONObject obj  = json.GetJSONObject("result");

            if (obj != null)
            {
                QQInfoCard info = new QQInfoCard();
                info.City     = obj.GetString("city");
                info.Country  = obj.GetString("country");
                info.Email    = obj.GetString("email");
                info.Nick     = obj.GetString("nick");
                info.Personal = obj.GetString("personal");
                info.Phone    = obj.GetString("phone");

                return(info);
            }
            return(null);
        }