Bug #1381

- #1381 Invalid JSON exported by Task 2.3.0-beta1 (thanks to Kosta H).