public string DoTranslate(string word) { if (null == word) { return(""); } string json = Translate(word); RootBean rootBean = ParseJson(json); return(rootBean.ConvertToString()); }
private RootBean ParseJson(string json) { RootBean bean = Newtonsoft.Json.JsonConvert.DeserializeObject <RootBean>(json); return(bean); }