diff --git a/LeanderShiftPlannerV2/Service/TimesheetService.cs b/LeanderShiftPlannerV2/Service/TimesheetService.cs index 6281a49..9e5d909 100644 --- a/LeanderShiftPlannerV2/Service/TimesheetService.cs +++ b/LeanderShiftPlannerV2/Service/TimesheetService.cs @@ -128,7 +128,12 @@ public class TimesheetService string jsonResponse = await response.Content.ReadAsStringAsync(); - JsonSerializerOptions options = new JsonSerializerOptions { PropertyNameCaseInsensitive = true }; + JsonSerializerOptions options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + PropertyNamingPolicy = JsonNamingPolicy.CamelCase, + WriteIndented = true + }; JsonObject? data = JsonSerializer.Deserialize(jsonResponse, options); foreach (KeyValuePair item in data)