use fs to write new items to json file