MCPcopy Index your code
hub / github.com/microsoft/playwright-python / is_json_parsable

Function is_json_parsable

playwright/_impl/_fetch.py:600–607  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

598
599
600def is_json_parsable(value: Any) -> bool:
601 if not isinstance(value, str):
602 return False
603 try:
604 json.loads(value)
605 return True
606 except json.JSONDecodeError:
607 return False

Callers 1

_inner_fetchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected