public Hydra_Attr[] getAttributes() { JavaScriptSerializer jss = new JavaScriptSerializer(); jss.MaxJsonLength = 500000000; Hydra_Attr[] atts = null; try { atts = jss.Deserialize <Hydra_Attr[]>(client.getAllAtributes()); } catch (System.Exception ex) { MessagesWriter.writeErrorMessage(ex.Message); } return(atts); }
Network getNetworkFromJsonString(string hydra_respond) { Network network = null; JavaScriptSerializer jss = new JavaScriptSerializer(); jss.MaxJsonLength = 500000000; try { network = jss.Deserialize <Network>(hydra_respond); } catch (System.Exception ex) { MessagesWriter.writeErrorMessage(ex.Message); } return(network); }