mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
use ujson package to encode and decode data
This commit is contained in:
parent
62ae241894
commit
fb0f1fd386
|
@ -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
|
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user