I have a dictionary which looks like this:
{"bbox": [[1386, 111], [1475, 111], [1475, 159], [1386, 159]]}
How could i get rid of square brackets of value in it, so it looks like this:
{"bbox": [1386, 111, 1475, 111, 1475, 159, 1386, 159]}
How could I write a function which would do that?
d = {k:v[0] for k,v in d.items()}