from django.http import HttpResponse
from django.utils import simplejson

from configuration_builder import DEFAULT_CONFIGURATION_BUILDER


def load_configuration(request):
    return HttpResponse(
        "var configuration = %s;" % simplejson.dumps(
            DEFAULT_CONFIGURATION_BUILDER.get_configuration()
        )
    )

import json

from django.http import HttpResponse

from configuration_builder import DEFAULT_CONFIGURATION_BUILDER


def load_configuration(request):
    return HttpResponse(
        "var configuration = %s;" % json.dumps(
            DEFAULT_CONFIGURATION_BUILDER.get_configuration()
        )
    )

Use json instead of django.utils.simplejson.
Use json instead of django.utils.simplejson.
+ import json
+ 
  from django.http import HttpResponse
- from django.utils import simplejson
  
  from configuration_builder import DEFAULT_CONFIGURATION_BUILDER
  
  
  def load_configuration(request):
      return HttpResponse(
-         "var configuration = %s;" % simplejson.dumps(
+         "var configuration = %s;" % json.dumps(
              DEFAULT_CONFIGURATION_BUILDER.get_configuration()
          )
      )
  
Use json instead of django.utils.simplejson.
## Code Before:
from django.http import HttpResponse
from django.utils import simplejson

from configuration_builder import DEFAULT_CONFIGURATION_BUILDER


def load_configuration(request):
    return HttpResponse(
        "var configuration = %s;" % simplejson.dumps(
            DEFAULT_CONFIGURATION_BUILDER.get_configuration()
        )
    )

## Instruction:
Use json instead of django.utils.simplejson.
## Code After:
import json

from django.http import HttpResponse

from configuration_builder import DEFAULT_CONFIGURATION_BUILDER


def load_configuration(request):
    return HttpResponse(
        "var configuration = %s;" % json.dumps(
            DEFAULT_CONFIGURATION_BUILDER.get_configuration()
        )
    )
