fs.write output is now fixed. But yet need object separation with a comma.