In python I'm trying to create .json file like this:
dic = {"vendor": "test", "username": "", "password": "", "connection": {"type": "telnet"}}
The output is:
[
{
'vendor': 'test',
'username': '',
'password': '',
'connection': {
'type': 'telnet'
}
}
]
How can I force python to use "
instead of '
, for example I don't want this:
'vendor': 'test',
But this:
"vendor": "test",