def isJson(jsonstr):
try:
json.loads(jsonstr.text)
return True
except Exception as e:
return False
def checktype(responsejson
python接口测试断言返回值json格式和数据类型
最新推荐文章于 2024-06-01 19:57:36 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
def isJson(jsonstr):
try:
json.loads(jsonstr.text)
return True
except Exception as e:
return False
def checktype(responsejson