Only add country to JSON if flag fits country code regex