MCPcopy
hub / github.com/ModelEngine-Group/nexent / _parse_json_or_none

Function _parse_json_or_none

backend/data_process/tasks.py:379–384  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

377
378
379def _parse_json_or_none(text: str) -> Optional[Dict[str, Any]]:
380 try:
381 parsed = json.loads(text)
382 return parsed if isinstance(parsed, dict) else None
383 except Exception:
384 return None
385
386
387@dataclass(frozen=True)

Callers 3

_postFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected