'Fill an array with data from a JSON input file.
:return: An array with PHP-versions with corresponding MD5 hashes.'

def fill_egg_array(self, json_egg_data):

    egg_db = {}
    for egg in json_egg_data['db']:
        version = egg['version']
        egg_db[version] = {}
        for key in ('credits', 'php_1', 'php_2', 'zend'):
            if (key in egg):
                egg_db[version][key] = egg[key]
    return egg_db
