Duke Realty Corp. has leased nearly 217,000 square feet to JD.com, China’s largest direct online retailer, filling a speculative industrial building under construction in Piscataway.