Magento 2: Get Region JSON

The following Magento 1 code gets me a JSON string of all country codes (states, provinces, cantons, etc.)

Mage::helper('directory')->getRegionJson()

What is the equivalent code in Magento 2?