def list_afdeling_adapter(obj, request):
    """
    Adapter for rendering a list of
    :class: `crabpy.gateway.capakey.Afdeling` to json.
    """
    return {'id': obj.id, 'naam': obj.naam, 'gemeente': obj.gemeente}
