MCPcopy
hub / github.com/django/django / dumps

Method dumps

django/core/signing.py:137–138  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

135 """
136
137 def dumps(self, obj):
138 return json.dumps(obj, separators=(",", ":")).encode("latin-1")
139
140 def loads(self, data):
141 return json.loads(data.decode("latin-1"))

Callers 15

json_scriptFunction · 0.45
__init__Method · 0.45
sign_objectMethod · 0.45
_encode_jsonMethod · 0.45
_confirm_picklableMethod · 0.45
is_pickableFunction · 0.45
render_to_responseMethod · 0.45
as_jsonMethod · 0.45
prepare_valueMethod · 0.45
has_changedMethod · 0.45
adapt_json_valueMethod · 0.45
compile_json_pathMethod · 0.45

Calls 1

encodeMethod · 0.45

Tested by 15

is_pickableFunction · 0.36
patch_urlopenFunction · 0.36
test_serializer_dumpsMethod · 0.36
test_picklableMethod · 0.36
test_picklingMethod · 0.36
test_ticket7813Method · 0.36
test_ticket7791Method · 0.36