Answer the question
In order to leave comments, you need to log in
How to make JSON "normal"?
Greetings.
How to get rid of unnecessary characters in JSON?
])}while(1);</x>{"key1":true,"key2":{"key3":[{"key4"....
import requests
import json
url = 'https://site.com'
r = requests.get(url, verify = False)
j = r.text
js = j.replace('])}while(1);</x>','')
json = json.loads(js)
print(json)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question