protected function getArrayFromJson22Compat($obj)
    {
        $obj = $this->getArrayFromJson($obj);

        if (isset($obj[0]) && ! \is_array($obj[0])) {
            $objEx = [];
            foreach ($obj as $item) {
                $objEx[] = [$item, 0];
            }

            return $objEx;
        }

        return $obj;
    }
protected function getArrayFromJson22Compat($obj)
    {
        $obj = $this->getArrayFromJson($obj);

        if (isset($obj[0]) && ! \is_array($obj[0])) {
            $objEx = [];
            foreach ($obj as $item) {
                $objEx[] = [$item, 0];
            }

            return $objEx;
        }

        return $obj;
    }
protected function getArrayFromJson22Compat ( $ obj ) { $ obj = $ this -> getArrayFromJson ( $ obj ) ; if ( isset ( $ obj [ 0 ] ) && ! \ is_array ( $ obj [ 0 ] ) ) { $ objEx = [ ] ; foreach ( $ obj as $ item ) { $ objEx [ ] = [ $ item , 0 ] ; } return $ objEx ; } return $ obj ; }
This method ensures compatibility with the 2.2.x country arrays passed throught the TaxRuleEvent

In 2.2.x, the TaxRuleEvent::getXXXCountryList() methods returned an array of country IDs. [ country ID, country ID ...].
From 2.3.0-alpha1, these functions are expected to return an array of arrays, each one containing a country ID and
a state ID. [ [ country ID, state ID], [ country ID, state ID], ...].

This method checks the $obj parameter, and create a 2.3.0-alpha1 compatible return value if $obj is expressed using
the 2.2.x form.

@param array $obj

@return array
This method ensures compatibility with the 2 . 2 . x country arrays passed throught the TaxRuleEvent