let dictionary = data.reduce((a,x) => ({...a, [x.id]: x.country}), {})