From d882fae5f91a21d3de6c13e6d737082575396e63 Mon Sep 17 00:00:00 2001 From: Falkvinge Date: Sat, 28 Oct 2017 13:46:06 +0200 Subject: [PATCH] Another JSON dumbfix --- Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs b/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs index 86d3e3ae..33794c0e 100644 --- a/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs +++ b/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs @@ -83,8 +83,8 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers if (lines.Count == 0) // add empty report line { - lines.Add(String.Format("\"id\":\"0\",\"description\":\"{0}\"", - JsonSanitize(Resources.Pages.Ledgers.ViewVatReports_EmptyReport))); + lines.Add("{" + String.Format("\"id\":\"0\",\"description\":\"{0}\"", + JsonSanitize(Resources.Pages.Ledgers.ViewVatReports_EmptyReport)) + "}"); } Response.Write("{\"rows\":[" + String.Join(",", lines.ToArray()) + "]");