Fixed the JSON and added driver names to it, but hardcoded for now

This commit is contained in:
2023-04-03 13:30:04 +02:00
parent 5ca6d61a69
commit 70872472a4
2 changed files with 28 additions and 6 deletions
+5 -5
View File
@@ -121,13 +121,13 @@ namespace OCR_tester
result += "\t" + "\"Zones\":[" + Environment.NewLine;
result += "\t\t{" + Environment.NewLine;
int Zcount = 0;
foreach (Zone z in Zones)
{
result += "\t\t" + z.ToJSON();
//foreach (Zone z in Zones)
//{
result += "\t\t" + Zones[0].ToJSON();
Zcount++;
if (Zcount != Zones.Count)
result += ",";
}
//result += ",";
//}
result += "\t\t}" + Environment.NewLine;
result += "\t" + "]" + Environment.NewLine;
}