Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok, I was able to solve this issue. This is not the correct way to return the list having some data. There should be a key value combination.

strobj = '[{"id": "111", "name": "test", "email": "xyz@gmail.com", "phone": "123456",}]' 
instances = json.loads(strobj

)