JSON output has no indication of the current-moving date
It would be helpful if the JSON output contained the date it was emitted for.
With the current format, the only option is to include that with every event.
Otherwise, instead of emitting multiple JSONArray of event-JSONObject documents, emit a single JSONArray of JSONObject(date: JSONArray of event-JSONObject), that’s even easier to parse (multi-document support exists in few JSON parsers).
It would be helpful if the JSON output contained the date it was emitted for.
The date for each event is included with:
khal list --json=title --json start-date
instead of emitting multiple JSONArray of event-JSONObject documents, emit a single JSONArray
I think that would have been preferible. What we're currently emitting is technically JSONL.
Hugo dixit:
The date for each event is included with:
khal list --json=title --json start-date
Is that not included in --json all?
The start date is NOT necessarily the date the line was emitted for (think multi-day all-day events like a vacation planner).
I see what you mean. If you print all events for this week, a week-long event is printed five times. You want to understand to which day each one corresponds.