I have a json file where a key is a list but it has Double-quote before the square bracket and the other at the end of the square bracket. Basically it makes the list a string. I want to write a program that can remove those specific double quotes so that I can use it as a List. Here is an example of that json file.
{
"attempts":[{
"image_dump":"[ {"x":247,"y":16}, {"x":248,"y":16} ]"
}]
}
I need to remove the double quotes for the value of key 'image_dump'. So that I can use that list. I tried using the replace() method but it replaces every double quote. How do I do it using python?