By default Z letter appending to date in tojson() format. Please find below tojson() format output....
Output:
{"startDate:2019-01-02Z","endDate:2019-01-07Z"}
Discussion posts and replies are publicly visible