Fix JSON error
This commit is contained in:
@@ -92,10 +92,12 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
result.Remove(result.Length - 1, 1); // remove last comma
|
||||
}
|
||||
|
||||
result.AppendFormat("],\"footer\":[\"id\":\"{0}\",\"amount\":\"{2:N2}\"]",
|
||||
result.Append("],\"footer\":[{");
|
||||
|
||||
result.AppendFormat("\"id\":\"{0}\",\"amount\":\"{2:N2}\"",
|
||||
"Total", balanceExpectedCents, centsTotal/100.0);
|
||||
|
||||
result.Append("}"); // on separate line to suppress warning
|
||||
result.Append("}]}"); // on separate line to suppress warning
|
||||
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user