clean up projects.json writer, added parameter path