Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 7, 2021 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/d27df0f2f893674b049dade58bf4e98c to your computer and use it in GitHub Desktop.
Save bjoerntx/d27df0f2f893674b049dade58bf4e98c to your computer and use it in GitHub Desktop.
public IActionResult Index() {
// load the merge data from JSON text file
List<Report> journal = JsonConvert.DeserializeObject<List<Report>>(
System.IO.File.ReadAllText("App_Data/data.json"));
return View(journal);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment