我有一个包含多个JSON对象的列表,我想将这些JSON对象组合成一个JSON对象,我try 使用jsonmerge
个,但没有成功.
My list is:
t = [{'ComSMS': 'true'}, {'ComMail': 'true'}, {'PName': 'riyaas'}, {'phone': '1'}]
所需的输出为
t = [{'ComSMS': 'true', 'ComMail': 'true', 'PName': 'riyaas', 'phone': '1'}]
I put the list in a for loop and tried json merge and I got the error head missing expected 2 arguments got 1
有人能帮我解决这个问题吗?