On 1/20/23 07:29, Dino wrote:

let's say I have this list of nested dicts:

[
   { "some_key": {'a':1, 'b':2}},
   { "some_other_key": {'a':3, 'b':4}}
]

I need to turn this into:

[
   { "value": "some_key", 'a':1, 'b':2},
   { "value": "some_other_key", 'a':3, 'b':4}
]

This doesn't look like the program output you're getting.




--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to