China’s Shanghai has been ranked as the world’s number one smart city for 2022 ahead of the Korean capital Soeul in second place.