2024-01-13 11:57:11 +01:00
|
|
|
def is_xml(value: str) -> bool:
|
|
|
|
|
result = False
|
|
|
|
|
|
|
|
|
|
if value:
|
|
|
|
|
if value.startswith("<?xml"):
|
|
|
|
|
result = True
|
|
|
|
|
|
|
|
|
|
return result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_json(value: str) -> bool:
|
|
|
|
|
result = False
|
|
|
|
|
|
|
|
|
|
if value:
|
|
|
|
|
if value.startswith("{"):
|
|
|
|
|
result = True
|
|
|
|
|
|
|
|
|
|
return result
|