0

I am trying to parse a json that I found in a website via python3.

enter image description here

This is the beginning of the snippet:

>>> jssnippet
'\n        var staticImpressions = staticImpressions || {};\n        staticImpressions[\'search_result_list\'] = [\n     {\n                "id": "16336937",...

This unfortunatelly failes:

data = json.loads(jssnippet, strict=False)

How can I access the variables in that list, e.g. id?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.