Apr-21-2022, 03:51 PM
I'm busy turning a permanent storage list into an on-screen list, back in the day we would have said 'hard disk' instead of permanent storage.
Anyway, have you tried this?
Anyway, have you tried this?
# Python program to update # JSON import json # JSON data: x = '{ "organization":"GeeksForGeeks", "city":"Noida", "country":"India"}' # python object to be appended y = {"pin":110096} # parsing JSON string: z = json.loads(x) # appending the data z.update(y) # the result is a JSON string: print(json.dumps(z))Produces this output:
.{“pin”: 110096, “organization”: “GeeksForGeeks”, “country”: “India”, “city”: “Noida”}