write json in source folder