I am trying to merge a list of dictionaries into a single json object to be consumed by another json parser.
Here is my list which I fetched from a requests.get
:
list = [{"name":"New York USA"}, {"id":446}]
Desired Output:
{
"org": {
"name": "New York USA",
"id": 446
}
}