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

Function load_json

experiments/baselines/nl_profile/runner.py:91–95  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

89
90
91def load_json(path: Path) -> Dict[str, Any]:
92 if not path.exists():
93 return {}
94 payload = json.loads(path.read_text(encoding="utf-8"))
95 return payload if isinstance(payload, dict) else {}
96
97
98def parse_string_list(raw_value: Any) -> List[str]:

Callers 2

load_rolesFunction · 0.70
load_user_metadataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected