Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/transformers
/ save_json
Function
save_json
examples/seq2seq/utils.py:204–206 ·
view source on GitHub ↗
(content, path)
Source
from the content-addressed store, hash-verified
202
203
204
def
save_json(content, path):
205
with
open(path,
"w"
)
as
f:
206
json.dump(content, f, indent=4)
207
208
209
def
load_json(path):
Callers
2
save_metrics
Method · 0.90
save_git_info
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected