Skip to content

Commit

Permalink
JSON yo, JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Oct 6, 2014
1 parent 28c35e5 commit da59706
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions django_geckoboard/decorators.py
Expand Up @@ -24,7 +24,8 @@
from django.views.decorators.csrf import csrf_exempt
from django.utils.datastructures import SortedDict
from django.utils.decorators import available_attrs
from django.utils import simplejson

import json


TEXT_NONE = 0
Expand Down Expand Up @@ -486,7 +487,7 @@ def _render(request, data, encrypted, format=None):
return _render_xml(data, encrypted)

def _render_json(data, encrypted=False):
data_json = simplejson.dumps(data)
data_json = json.dumps(data)
if encrypted:
data_json = _encrypt(data_json)
return data_json, 'application/json'
Expand Down

0 comments on commit da59706

Please sign in to comment.