src/Tools/Utilities.php
function loadJsonAsArray($pFile)
    {
        $contents = \file_get_contents($pFile);
        $returnValue = \json_decode($contents, true);

        if (!$this->isArray($returnValue)) {
            $returnValue = [];
        }

        return $returnValue;
    }
function loadJsonAsArray($pFile)
    {
        $contents = \file_get_contents($pFile);
        $returnValue = \json_decode($contents, true);

        if (!$this->isArray($returnValue)) {
            $returnValue = [];
        }

        return $returnValue;
    }
function loadJsonAsArray ( $ pFile ) { $ contents = \ file_get_contents ( $ pFile ) ; $ returnValue = \ json_decode ( $ contents , true ) ; if ( ! $ this -> isArray ( $ returnValue ) ) { $ returnValue = [ ] ; } return $ returnValue ; }
Load the attribute map from file.

@param string $pFile attribute map file contents.
@throw \Exception
@return array
Load the attribute map from file .