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)); }
public static ArrayList getArrayListFromJson(string json) { ArrayList result = null; try { result = MyJSONHelper.JsonToObject <ArrayList>(json); } catch (Exception ex) { result = new ArrayList(); } return(result); }