def _dump_json(data):
    options = getattr(settings, 'JSON_OPTIONS', {})

    if options in 'cls':
        if isinstance(options['cls'], six.string_types):
            options['cls'] = import_string(options['cls'])
    else:
        try:
            use_django = getattr(settings, 'JSON_USE_DJANGO_SERIALIZER')
        except AttributeError:
            use_django = True
        else:
            warnings.warn(
                "JSON_USE_DJANGO_SERIALIZER is deprecated and will be "
                "removed. Please use JSON_OPTIONS['cls'] instead.",
                DeprecationWarning)

        if use_django:
            options['cls'] = DjangoJSONEncoder

    return json.dumps(data, **options)
dataset/ETHPy150Open jsocol/django-jsonview/jsonview/decorators.py/_dump_json/swapped operands of `in`