I have the following json file:
{
"company":[
{
"name":"My company",
"security":"WPA2-PSK"
}
],
"name":"one name"
}
When I do:
j = open(file)
j1 = json.load(j)
j.close()
j2 = json.dumps(j1)
#type(j2)
j3 = json.loads(j2)
I have the following dictionary:
{'company': [{'name': 'My company', 'security': 'WPA2-PSK'}],
'name': 'one name'}
But I need a dictionary with double quotes like this:
{"company": [{"name": "My company", "security": "WPA2-PSK"}],
"name": "one name"}