looping through wdpa ids for exporting segments into one json