MCPcopy Index your code
hub / github.com/RustPython/RustPython / json_dump

Function json_dump

extra_tests/snippets/stdlib_json.py:14–18  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

12
13
14def json_dump(obj):
15 f = StringIO()
16 json.dump(obj, f)
17 f.seek(0)
18 return f.getvalue()
19
20
21def json_load(obj):

Callers 1

stdlib_json.pyFile · 0.85

Calls 4

getvalueMethod · 0.95
StringIOClass · 0.90
dumpMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected