private void OnAnalyze(AnalysisResults resp, Dictionary <string, object> customData) { List <string> simplifiedKeywords = new List <string> (); string json = customData ["json"].ToString(); List <Keyword> keyWords = JsonConvert.DeserializeObject <RootObject>(json).keywords; List <Entity> entities = JsonConvert.DeserializeObject <RootObject>(json).entities; foreach (Keyword k in keyWords) { simplifiedKeywords.Add(k.text); } foreach (string s in customFoundWords) { simplifiedKeywords.Add(s); } storyData.addParagraph(simplifiedKeywords, entities); loadingChunk = false; }