Corrected typo in writeJson