The city’s GDP expanded 5 per cent last year as the global economy turned out to be weaker than expected, Mayor Gong Zheng told an annual session of the Shanghai People’s Congress on Tuesday.