Hi,
Thanks for your prompt reply.
I have tried both the things but I get the same error.
With,
x = json.loads(p.read())
print x
I get following error: 'HttpResponse' object has no attribute
'read'
Also I get same error with, json.dumps(p.read()), and same when I use
loads and dumps as load and dump without s.
Then, I tried the other option,
x = json.dump(p)
print x
I get the following error: dump() takes at least 2 arguments (1 given)
What would be the second argument, I googled on this but find no
helpful tips as everything written is too complicated.
And with:
x = json.load(p)
print x
'HttpResponse' object has no attribute 'read'
In all the examples, p is the HttpResponse object I get.
Looking forward,
Irum