json Bugs from Newtonsoft.Json to System.Text.Json
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user