the population in and around nanjing , and most of the population as far as the boundaries of the city of shanghai , were employed , content , and prospering as much as was possible in china at the time .