예제 #1
0
        public static T Get <T>(string url, Object requestModel)
        {
            var requestData = requestModel == null ? "" : getUrlParams(requestModel);
            var uri         = m_APIUrl + url + requestData;
            var json        = SDKHttpRequest._GET(uri);

            if (string.IsNullOrWhiteSpace(json))
            {
                json = "{}";
            }
            return(MyJSONHelper.JsonToObject <T>(json));
        }
예제 #2
0
        public static ArrayList getArrayListFromJson(string json)
        {
            ArrayList result = null;

            try
            {
                result = MyJSONHelper.JsonToObject <ArrayList>(json);
            }
            catch (Exception ex)
            {
                result = new ArrayList();
            }

            return(result);
        }