I have a string like below in python
{
“id”: “123”,
“partition”: “[“partition_id=20240511″]”
}
output should be
{
“id”: “123”,
“partition”: [“partition_id=20240511”]
}
I have tried with the optiona replace(‘”[‘,'[‘) and replace(‘]”‘,’]’), but no luck.
Can someone please share inputs here.
Thanks in advance.