powershell ConvertTo-Json 嵌套对象错误

powershell ConvertTo-Json 嵌套对象错误

我有一个如下的 json:

当我设置$jdata | ConvertTo-Json -Depth 20

json = @"{
 "name": "demo",
 "configs": {
     "DelfiAssociation": {
            "Count": 4,
            "value": [
                {
                    "ContractId": 563288978080,
                    "CrmContractId": "-001",
                    "PartitionId": "systemdefault-b001-120295",
                    "PartitionName": "SystemDefault"
                },
                {
                    "ContractId": 57061678656,
                    "CrmContractId": "-400",
                    "PartitionId": "systemdefault-b400-120295",
                    "PartitionName": "SystemDefault"
                },
                {
                    "ContractId": 5754337791836160,
                    "CrmContractId": "-500",
                    "PartitionId": "systemdefault-b500",
                    "PartitionName": "SystemDefault"
                },
                {
                    "ContractId": 5753054510972928,
                    "CrmContractId": "-440346",
                    "PartitionId": "systemdefault-510",
                    "PartitionName": "SystemDefault"
                }
            ]
        }
 }
}@

错误如下:

"DelfiAssociation": {
            "Count": 4,
            "value": {
                "Count": 4,
                "value": [ ... ]
   }
}

相关内容