

def _is_valid_json(self, doc):
    'Determine if the retrieved string is a valid json document or not'
    try:
        js = json.loads(self)
        return js
    except ValueError:
        return None

dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/backend/burp2.py Burp._is_valid_json/VarMisuse@24/53 `doc`->`self`