17 lines
273 B
Python
17 lines
273 B
Python
def is_xml(value: str) -> bool:
|
|
result = False
|
|
|
|
if value and value.startswith("<?xml"):
|
|
result = True
|
|
|
|
return result
|
|
|
|
|
|
def is_json(value: str) -> bool:
|
|
result = False
|
|
|
|
if value and value.startswith("{"):
|
|
result = True
|
|
|
|
return result
|