Python 如何将str列表项转换为dict,而列表项的结构与dict相同

Python 如何将str列表项转换为dict,而列表项的结构与dict相同,python,list,api,dictionary,Python,List,Api,Dictionary,我正在试着把一个列表转换成dict 列表有一个dict结构,我需要从dict中获取一个特定的对象。最后,我可以从下面的输出中获取一个特定的日期,并将其与另一个进行比较 我有这个密码 aapi_billing = execute_command(<some command returned dict structure >) for i in aapi_billing: print(i) 最后,我想在“tenantId”之后得到dict

我正在试着把一个列表转换成dict 列表有一个dict结构,我需要从dict中获取一个特定的对象。最后,我可以从下面的输出中获取一个特定的日期,并将其与另一个进行比较

我有这个密码

    aapi_billing = execute_command(<some command returned dict structure >)
        for i in aapi_billing:
            print(i)

最后,我想在“tenantId”之后得到dict对象:“耐力-tlv-2-4221”

这是字符串吗?输出中的**是什么?是的,它是一个字符串列表,我试图将需要获取的部分加粗
 {
  "tenantId": "endurance-aus-2-4188",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-aus-2-4221",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-aus-2-4324",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-1-4188",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-1-4221",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-1-4324",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-2-4188",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-2-4221",
  "2020-10-27": {
    "jobExecutions": 3299
  },
  "2020-10-28": {
    "jobExecutions": 20129
  },
  "2020-10-29": {
    "jobExecutions": 20085
  },
  "2020-10-30": {
    "jobExecutions": 20149
  },
  "2020-10-31": {
    "jobExecutions": 20176
  },
  "2020-11-01": {
    "jobExecutions": 20145
  },
  "2020-11-02": {
    "jobExecutions": 26117
  },
  "2020-11-03": {
    "jobExecutions": 26123
  },
  "totalExecutions": 156223
},
{
  "tenantId": "endurance-tlv-2-4324",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-3-4188",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-3-4221",
  "totalExecutions": 0
},
{
  "tenantId": "endurance-tlv-3-4324",
  "totalExecutions": 0
}