Update an item from a JSON document

def update(handler, item_document):
    """Update an item from a JSON document"""
    data = {'operation': 'update',
            'encrypt': encrypt,
            'item': json.load(item_document)}
    handler.invoke(data)