Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
14
def
json_dump(obj):
15
f = StringIO()
16
json.dump(obj, f)
17
f.seek(0)
18
return
f.getvalue()
19
20
21
def
json_load(obj):
Callers
1
stdlib_json.py
File · 0.85
Calls
4
getvalue
Method · 0.95
StringIO
Class · 0.90
dump
Method · 0.45
seek
Method · 0.45
Tested by
no test coverage detected