China’s JD.com’s quest to expand into technologies such as artificial intelligence and automation is causing its expenses to soar, with the company seeing its Q2...