public static function call($path, $assoc = false)
    {
        return self::parse(BomUtil::removeBom(self::readFile($path)), $assoc);
    }
public static function call($path, $assoc = false)
    {
        return self::parse(BomUtil::removeBom(self::readFile($path)), $assoc);
    }
public static function call ( $ path , $ assoc = false ) { return self :: parse ( BomUtil :: removeBom ( self :: readFile ( $ path ) ) , $ assoc ) ; }
Read and decode a JSON file.

@see http://php.net/manual/en/function.json-decode.php json_decode documentation

@param string $path  the file path
@param bool   $assoc returned objects will be converted into associative arrays

@return mixed the value encoded in json in appropriate PHP type

@throws ResourceException
@throws ParsingException

@SuppressWarnings(PHPMD.BooleanArgumentFlag)
@SuppressWarnings(PHPMD.StaticAccess)
Read and decode a JSON file .