import json


def get_input(activity_task):
    """
    Given a response from polling for activity from SWF via boto,
    extract the input from the json data
    """
    try:
        input = json.loads(activity_task["input"])
    except KeyError:
        input = None
    return input