Switch to BufferedWriter when writing to tasks.json