public override Control BuildMainView() { var j = new JsonTreeViewer(); dynamic response; NetManager.Get(false, "debug", out response); j.RenderJson(response); return(j); }
public override Control BuildMainView() { dynamic root; NetManager.Get(true, "/user/me", out root); var ui = new JsonTreeViewer(); ui.RenderJson(root, false); return(ui); }
public override Control BuildMainView() { var root = GetLangList(); var ui = new JsonTreeViewer(); foreach (var e in root) { var sub = GetLibList(e["id"].Value <int>(), 1, new JArray()); e["libs"] = sub; foreach (var e1 in sub) { var sub1 = GetSymbolList(e1["id"].Value <int>(), 1, new JArray()); e1["symbols"] = sub1; } } ui.RenderJson(root, false); return(ui); }