Write json files to rooms directories