Skip to content
Snippets Groups Projects
Commit 2b39ea5e authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

BUGFIX: StatusBarI3 comma

parent 4530e1d2
Branches
No related tags found
No related merge requests found
......@@ -340,7 +340,7 @@ namespace i3csstatus {
override protected void initOutput(TextWriter w)
{
w.WriteLine("{\"version\":1}");
w.WriteLine("[");
w.WriteLine("[{}");
}
override protected void format(TextWriter w, List<Element> elements)
{
......@@ -351,6 +351,7 @@ namespace i3csstatus {
}).ToArray());
var opt = new JsonSerializerOptions();
opt.DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull;
w.Write(",");
w.WriteLine(json.ToJsonString(opt));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment