Shares of JD.com (JD -6.56%), the second largest e-commerce player in China after Alibaba (BABA -1.54%), rallied more than 70% over the past 12 months. After that big move, investors might be wondering if it's time to take profits, especially with the stock trading at 52 times forward earnings.

However, I think JD deserves to trade at that premium, and I recently started a new position in the stock for five simple reasons.

JD.com signage.

Image source: JD.com.

1. Alibaba is losing ground to JD

Alibaba's Tmall and JD.com respectively controlled 51.3% and 32.9% of China's e-commerce market in the second quarter of 2017 according to Analysys International Enfodesk. But back in 2014, Tmall controlled 54.6% of the market, while JD controlled just 17.7%.

JD's market share surged for two main reasons. First, it benefited from the failures of smaller online marketplaces, which struggled to match its scale and brand recognition.

Second, Chinese consumers started valuing quality and authenticity over low prices -- making B2C (business-to-consumer) marketplaces like JD and Tmall more popular than C2C (consumer-to-consumer) marketplaces like Alibaba's Taobao. JD attracted shoppers by chastising Alibaba for its lax enforcement of counterfeit goods, and repeatedly touted its own "zero tolerance" policy for fake products.

2. No one wants to feed Alibaba

Alibaba is expanding beyond e-commerce into adjacent markets like cloud services, an internet search engine, artificial intelligence, mobile payments, fintech, and media streaming. That growth threatens other companies, many of which partnered with JD to throttle Alibaba's growth.

For example, JD's top investors are Tencent (TCEHY 3.05%) and Wal-Mart (WMT -1.21%), which respectively own about 20% and 10% of the company. Tencent owns WeChat, the most popular messaging app in China, while Wal-Mart operates over 400 stores across the country. The three companies now pool their user and customer data, offer mutual discounts, and accept payments with Tencent's WeChat Pay.

But that's not all. JD also recently integrated its e-commerce features into online search giant Baidu's (BIDU -0.48%) app, and invested in flash sale site Vipshop (VIPS 0.14%), which ranks a distant third in the Chinese e-commerce market. Simply put, Alibaba has more market clout, but JD.com has more allies.

3. A constantly evolving ecosystem

JD is expanding in multiple directions at the same time. It's strengthening its logistics chain with partnerships -- like its new alliance with Japanese courier Yamato Holdings -- along with fresh funding rounds for its warehousing and delivery unit, JD Logistics. It's also keeping pace with Alibaba in the next-gen field of drone deliveries.

An illustration of the e-commerce logistics chain.

Image source: Getty Images.

JD also has its sights set overseas, with plans to expand into Europe (starting with France) and the US within the next few years. It's also expanding its brick-and-mortar presence with plans to open 1,000 grocery stores across China in a bid to counter Alibaba's $2.9 billion investment in the country's top hypermart operator, Sun Art Retail.

JD also shrewdly spun off its fintech arm Jingdong Finance -- which eliminates credit risks to its core marketplace business -- last year.

4. Spectacular revenue growth

JD's consistent market share growth and expansion into new markets are generating robust sales growth.

Metric

Q3 2016

Q4 2016

Q1 2017

Q2 2017

Q3 2017

Revenue

$9.1B

$11.6B

$11.1B

$13.7B

$12.6B

YOY growth*

38%

47%

41.2%

43.6%

39.2%

Source: JD.com quarterly reports. *in RMB.

Wall Street expects JD's revenue to rise 39% this year (in US dollars), compared to 34% growth in US dollars and 44% growth in RMB last year.

5. Profitability on the horizon

JD posted a net loss by both GAAP and non-GAAP measures last year, but it's been profitable on a non-GAAP basis for the past four quarters. That's why analysts expect it to post a full-year profit this year, and for its earnings to rise more than eight-fold in fiscal 2018.

If JD hits those targets, its forward multiples will quickly contract. Therefore, the stock could still be a bargain after its big rally last year.

The key takeaways

JD is a volatile stock and isn't for queasy investors. But it also should never be dismissed as a "second-rate Alibaba", especially when its growing market share, expanding ecosystem, rising revenues, and improving profitability suggest otherwise.