I am working in python, and I have a json file that looks like this:
"{\"label\": \"red\", \"seconds\": 20}"
"{\"label\": \"blue\", \"seconds\": 10}"
And I would like to get rid of all backslashes and quotes to look like this:
{label: red, seconds: 20}
 {label: blue, seconds: 10}
I have attached the code to show how I got the json file, which was made from a string of individual json objects.
for value in finalOutputList:
    newOutputString = json.dumps(value)
    finalOutputString += (newOutputString + "\n")
with open('data.json', 'a') as outfile:
    for item in outputString.splitlines():
        json.dump(item, outfile)
        outfile.write("\n")
