import json


def convert_bytes_array_to_json(bytes_array, encoding="utf-8"):
    """
    Purpose:
        Read Bytes-Array (of a JSON Object) To a JSON Object
    Args:
        bytes_array (Bytes Array): Bytes-Array of a JSON Object
    Returns:
        json_object (Dictonary): Dictonary representation JSON Object
    """

    str_representation = bytes_array.decode(encoding)
    str_representation = str_representation.replace("'", '"')
    json_object = json.loads(str_representation)

    return json_object