我有2组JSON记录,我试图将这2条记录合并为一条记录。这2条记录最初以Dict obj的形式返回,后来被放置在列表中并使用JSON作为JSON吐出。转储。关于如何将记录进行组合和有效实现这一点,有何建议?
"records": [
{
"attributes": {
"type": "LoginHistory",
"url": "/services/data/v38.0/sobjects/LoginHistory/0Ya1U000000jibxSAA"
},
"Status": "Success",
"Platform": "Mac OSX",
}
]
},
{
"totalSize": 5,
"done": true,
"records": [
{
"attributes": {
"type": "User",
"url": "/services/data/v38.0/sobjects/User/0051U0000010dYMQAY"
},
"FirstName": null,
"LastName": "Chatter Expert",
预期产量
"records": [
{
"attributes": {
"type": "LoginHistory",
"url": "/services/data/v38.0/sobjects/LoginHistory/0Ya1U000000jibxSAA"
},
"Status": "Success",
"Platform": "Mac OSX",
}
]
"records": [
{
"attributes": {
"type": "User",
"url": "/services/data/v38.0/sobjects/User/0051U0000010dYMQAY"
},
"FirstName": null,
"LastName": "Chatter Expert",