from typing import List
import json
import logging


def open_and_load_emojis_db(file_path: str) -> List[dict]:
    """Open `file_path`, load its content as JSON and return it"""
    try:
        with open(file_path, encoding='utf-8') as f_emojis_db:
            emojis_db = json.load(f_emojis_db)

    except (FileNotFoundError, json.JSONDecodeError) as error:
        emojis_db = []
        logging.error("Could not read or load the emojis database : %s.", error)

    return emojis_db