use ujson package to encode and decode data

This commit is contained in:
yuchunzhou 2020-01-03 17:45:21 +08:00
parent 62ae241894
commit fb0f1fd386
3 changed files with 3 additions and 2 deletions

View File

@ -7,3 +7,4 @@ django-filter>=2.2.0, <2.3
coreapi==2.3.1 coreapi==2.3.1
coreschema==0.0.4 coreschema==0.0.4
pyyaml>=5.1 pyyaml>=5.1
ujson==1.35

View File

@ -3,7 +3,7 @@ Helper classes for parsers.
""" """
import datetime import datetime
import decimal import decimal
import json # noqa import ujson as json # noqa
import uuid import uuid
from django.db.models.query import QuerySet from django.db.models.query import QuerySet

View File

@ -6,7 +6,7 @@ spec-compliant encoding/decoding. Support for non-standard features should be
handled by users at the renderer and parser layer. handled by users at the renderer and parser layer.
""" """
import functools import functools
import json # noqa import ujson as json # noqa
def strict_constant(o): def strict_constant(o):