import json


def read_json(input_string):
    """Loads a json_dict from either a filename or a json string

    Args:
        geojson (str): either path to file, or full parsable string

    Returns:
        dict: json loaded into a dict
    """
    if '{' in input_string:
        # Assuming not a filename:
        json_dict = json.loads(input_string)
    else:
        with open(input_string, 'r') as f:
            json_dict = json.load(f)
    return json_dict