I want to convert List of JSON object ot Single JSON frame
Here is my code
for i in user1:name=i.namepassword=i.passwordid1=i.iduser = { "name" : name,"password" : password,"id":id1}user = json.dumps(user)userid.append(user)
I am getting output is
['{"password": "A123", "name": "Sam", "id": 1}', '{"password":"B123", "name": "Sammy", "id": 2}', '{"password": "C123", "name":"Abhi", "id": 3}']
What I want is something like
{{"password": "A123", "name": "Sam", "id": 1},{"password":"B123", "name": "Sammy", "id": 2},{"password": "C123", "name":"Abhi", "id": 3}}