import json


def isJsonDict(s):
    """
    Take a string and determine if valid JSON.
    """
    try:
        data = json.loads(s)
        return type(data) == dict
    except ValueError:
        return False