在python中删除key=value模式中仅key的双引号

在python中删除key=value模式中仅key的双引号,python,json,Python,Json,我有json数据,它以以下格式存储: [{"Status": "status", "Command": "command", "IPAddress": "xx.xx.xx.xx ", "name": "name", "Service": "service"}] 我们将对其进行进一步修改,以获得: "Status="status","Command="command","IPAddress="xx.xx.xx.xx","name="name","Service="service" 但我希望使用

我有json数据,它以以下格式存储:

[{"Status": "status", "Command": "command", "IPAddress": "xx.xx.xx.xx ", "name": "name", "Service": "service"}]
我们将对其进行进一步修改,以获得:

"Status="status","Command="command","IPAddress="xx.xx.xx.xx","name="name","Service="service"
但我希望使用python脚本将双引号(“)从键中删除。因此预期的输出如下:

Status="status",Command="command",IPAddress="xx.xx.xx.xx",name="name",Service="service"

我对python还是新手,非常感谢使用简单迭代在这方面提供的帮助

Ex:

j = [{"Status": "status", "Command": "command", "IPAddress": "xx.xx.xx.xx ", "name": "name", "Service": "service"}]
s = ""
for k,v in j[0].items():
    s += '{0}: "{1}", '.format(k, v)
print(s.rstrip(", "))
Status: "status", IPAddress: "xx.xx.xx.xx ", Command: "command", name: "name", Service: "service" 
输出:

j = [{"Status": "status", "Command": "command", "IPAddress": "xx.xx.xx.xx ", "name": "name", "Service": "service"}]
s = ""
for k,v in j[0].items():
    s += '{0}: "{1}", '.format(k, v)
print(s.rstrip(", "))
Status: "status", IPAddress: "xx.xx.xx.xx ", Command: "command", name: "name", Service: "service" 

不清楚您想对输入做什么,请澄清。另外,请解释您已经尝试了什么,以便我们可以帮助您改进。输出是字符串吗?是的,输出是字符串。我希望json数据转换为我预期的输出,我尝试过替换特殊字符,但被保留在开头的双引号卡住了对每个键进行nning,如(“Status=”Status”),因此我希望从键中删除双引号。我建议反序列化json,然后序列化为您自己的格式。虽然我猜,所讨论的json可能是一个字符串。感谢您的快速回复,但如何删除,在行尾:使用
rstrip
就像在解决方案中一样,status:“status”,IPAddress:“xx.xx.xx.xx”,Command:“Command”,name:“name”,Service:“Service”,最后一个必须是removed@Archana如果解决方案解决了问题。请接受ans