MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _json_loads

Function _json_loads

skills/wiki-store/scripts/wiki_db.py:43–54  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

41 if not root.is_absolute():
42 root = PROJECT_ROOT / root
43 return root
44 return DEFAULT_WIKI_DIR
45
46
47def _json_dumps(value: Any) -> str:
48 return json.dumps(value or {}, ensure_ascii=False, sort_keys=True)
49
50
51def _json_loads(value: Any) -> Dict[str, Any]:
52 if isinstance(value, dict):
53 return value
54 if not value:
55 return {}
56 if isinstance(value, str):
57 try:

Callers 2

_row_to_nodeFunction · 0.85
write_node_mirrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected