separates json data by country