Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeusData/codebase-memory-mcp
/ write_json
Function
write_json
tests/coverage_live_v2_support.py:37–40 ·
view source on GitHub ↗
(path, value)
Source
from the content-addressed store, hash-verified
35
36
37
def
write_json(path, value):
38
with
Path(path).open(
"x"
, encoding=
"utf-8"
)
as
stream:
39
json.dump(value, stream, indent=2, sort_keys=True)
40
stream.write(
"\n"
)
41
42
43
def
clean_env():
Callers
3
registry
Method · 0.90
main
Function · 0.90
run
Method · 0.70
Calls
2
open
Method · 0.80
write
Method · 0.45
Tested by
2
registry
Method · 0.72
main
Function · 0.72