public IActionResult Index(string key = "preface") { var jsonData = new JsonData(); var deserializedJson = JsonService.DeserializeJson(); jsonData = GetDictionaryData.GetDictionaryValues(deserializedJson.JsonDict, key); return(View(jsonData)); }
public ActionResult GetDataJson() { return(Json(new { data = JsonService.DeserializeJson() }, JsonRequestBehavior.AllowGet)); }