import json


def handle_json(data):
    """Attempts to create dictionary object from data request.
    Args:
        data (str): String representation of JSON.
    
    Returns:
        dict: If invalid JSON returns empty dictionary.
    """
    try:
        return json.loads(data)
    except Exception as e:
        return dict()