JD.com is China’s second-largest e-commerce company. By using rural villages’ social networks to recruit new customers and employees, the company is capturing the country’s growing online retail market, improving Chinese life and possibly giving villagers an incentive not to leave for the city.