def is_json(response):
    try:
        json.loads(response)
    except ValueError:
        return False
    return True
Check if the response parameter is a valid JSON string
dataset/ETHPy150Open farshield/pathfinder/src/pathfinder/model/tripwire.py/is_json