From f8a0df9a88dc0755ca09fc5f83aafc1b88b0dff9 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 7 Mar 2022 22:35:54 +0100 Subject: [PATCH] Fix tickets with reservations --- bahnplan.web/JSON/TicketResponse.cs | 4 ++-- bahnplan.web/bahnplan.web.csproj | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bahnplan.web/JSON/TicketResponse.cs b/bahnplan.web/JSON/TicketResponse.cs index d2f8ddc..ae023c3 100644 --- a/bahnplan.web/JSON/TicketResponse.cs +++ b/bahnplan.web/JSON/TicketResponse.cs @@ -173,7 +173,7 @@ namespace bahnplan.web.JSON { } public class Reslist { - [J("res", NullValueHandling = NV.Ignore)] + [J("res", NullValueHandling = NV.Ignore), JsonConverter(typeof(SingleOrArrayConverter))] public List Res { get; set; } } @@ -431,4 +431,4 @@ namespace bahnplan.web.JSON { throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/bahnplan.web/bahnplan.web.csproj b/bahnplan.web/bahnplan.web.csproj index ae5cf36..af31509 100644 --- a/bahnplan.web/bahnplan.web.csproj +++ b/bahnplan.web/bahnplan.web.csproj @@ -68,13 +68,13 @@ - - + + - - - - + + + +