Skip to content Skip to sidebar Skip to footer

How To Solve The 'dict' Object Has No Attribute '_meta'

I am trying to retrieve some data from a web API because I want to display it in the browser and I want to manipulate it by assigning this data to a variable, so I can manipulate t

Solution 1:

Seems like I did not have to serialize the data and just modify the code with the following:

defget_data(request, *args, **kwargs):
with urllib.request.urlopen("http://10.61.202.98:8081/T/ansdb/api/rows/dev/tickets?id=1003611",timeout=10) as url:
    response_data = json.loads(url.read().decode())
print(response_data)
return JsonResponse(response_data, safe=False)

This makes possible to visualize the JSON in the current window of my app but I am still unable to see this JSON object in the console.

Post a Comment for "How To Solve The 'dict' Object Has No Attribute '_meta'"