def dehydrate_validation_errors(errors_data):
    """Convert ValidationError objects to their string representation
    it is safe for JsonResponse
    """

    dehydrated_output = {}
    for key, value in errors_data.items():
        errors = []
        for i in value:
            for message in i.messages:
                errors.append(message)
        dehydrated_output[key] = ', '.join(errors)

    return dehydrated_output