json Bugs from Newtonsoft.Json to System.Text.Json

This commit is contained in:
2022-07-27 12:30:27 -07:00
parent b155863645
commit c832b63f2f
5 changed files with 36 additions and 22 deletions

View File

@ -3,6 +3,7 @@
namespace OI.Metrology.Viewer.ApiContollers;
using OI.Metrology.Shared.Repositories;
using System.Text.Json;
// this controller is for the Awaiting Dispo functionality
@ -23,7 +24,7 @@ public class AwaitingDispoController : Controller
{
Results = _Repo.GetAwaitingDispo()
};
return Json(r);
return Json(r, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
}
// this endpoint is used to set the ReviewDate column, causing the header to no longer show in Awaiting Dispo