def convert_property(value):
    """ convert a value to json from Property._to_json """
    if MAP_TYPES_PROPERTIES in type(value):
        prop = MAP_TYPES_PROPERTIES[type(value)]()
        value = prop.to_json(value)
    return value
dataset/ETHPy150Open benoitc/couchdbkit/couchdbkit/schema/properties.py/convert_property/swapped operands of `in`