jsonCallback1530150433250_46028 && jsonCallback1530150433250_46028({"context":"synthesis%3Ddisabled%26q%3D%2523all%2Bcard_content_lang%253Aen%2B%2B%2B%2Bcard_content_type%253A%2528%2522career%2522%2529%2B%26b%3D0%26s%3Ddesc%2528score_with_card_update_timestamp%2529%26output_format%3Djson%26callback%3
The above is a part example of a json that i want to parse from the full link below.
The main problem is I cannot extract it from the web as it is invalid. i was previously using json.loads() but the structure changed. How do i get the whole json data into string with a different library or anything else for editing?
Thanks for the help
Here is the link for full json: https://apisearch.3ds.com/card_search_api?q=%23all%20card_content_lang%3Aen%20%20%20%20card_content_type%3A(%22career%22)%20&s=desc(score_with_card_update_timestamp)&b=0&hf=10&output_format=json&callback=jsonCallback1530150433250_46028
I can't post an image for now, but here is an anology:
link = 'https://apisearch.3ds.com/card_search_api?q=%23all%20card_content_lang%3Aen%20%20%20%20card_content_type%3A(%22career%22)%20&s=desc(score_with_card_update_timestamp)&b=0&hf=10&output_format=json&callback=jsonCallback1530150433250_46028'
response = requests.get(link)
time.sleep(random.randint(3,5)
json_obj = json.loads(response.text)
print json_obj
Which gives me, *ValueError: No JSON object could be decoded*