代码之家  ›  专栏  ›  技术社区  ›  john Gu

为什么在自定义连接器中导入JSON时会跳过某些JSON属性

  •  1
  • john Gu  · 技术社区  · 4 年前

    我正在构建自定义连接器>>并且在动作部分内>>我尝试在响应中导入此JSON:-

    {
       "content":[
          {
             "id":1042,
             "data":{
                "beneficiary":{
                   "name":"Beneficiary LTD",
                   "id":1158
                },
                "pay_from":{
                   "iban":"GB29OBI170000170000001",
                   "accountNumber":null,
                   "bic":"GB29OBI1XXX",
                   "sortCode":null
                },
                "documents":{
                   "PAYROLL":true
                },
                "due_date":null,
                "payment_amount":250.000000000000000000000000000000,
                "amount_due":250.000000000000000000000000000000,
                "pay_method":"MANUAL",
                "payment_reference":"Test payment reference",
                "pay_to":{
                   "abartn":null,
                   "iban":null,
                   "accountNumber":"12345612",
                   "bic":null,
                   "ifscCode":null,
                   "sortCode":"123456"
                }
             }
          },
          {
             "id":1043,
             "data":{
                "beneficiary":{
                   "name":"Beneficiary LTD",
                   "id":1158
                },
                "pay_from":{
                   "iban":"GB29OBI170000170000001",
                   "accountNumber":null,
                   "bic":"GB29OBI1XXX",
                   "sortCode":null
                },
                "documents":{
                   "PAYROLL":true
                },
                "due_date":null,
                "payment_amount":2501.000000000000000000000000000000,
                "amount_due":2501.000000000000000000000000000000,
                "pay_method":"MANUAL",
                "payment_reference":"Test payment reference",
                "pay_to":{
                   "abartn":null,
                   "iban":null,
                   "accountNumber":"12345612",
                   "bic":null,
                   "ifscCode":null,
                   "sortCode":"123456"
                }
             }
          },
          {
             "id":1044,
             "data":{
                "beneficiary":{
                   "name":"Beneficiary LTD",
                   "id":1158
                },
                "pay_from":{
                   "iban":"GB29OBI170000170000001",
                   "accountNumber":null,
                   "bic":"GB29OBI1XXX",
                   "sortCode":null
                },
                "documents":{
                   "PAYROLL":true
                },
                "due_date":null,
                "payment_amount":2501.000000000000000000000000000000,
                "amount_due":2501.000000000000000000000000000000,
                "pay_method":"MANUAL",
                "payment_reference":"Test payment reference",
                "pay_to":{
                   "abartn":null,
                   "iban":null,
                   "accountNumber":"12345612",
                   "bic":null,
                   "ifscCode":null,
                   "sortCode":"123456"
                }
             }
          }
       ],
       "pageable":{
          "sort":{
             "empty":true,
             "sorted":false,
             "unsorted":true
          },
          "offset":0,
          "pageNumber":0,
          "pageSize":10,
          "paged":true,
          "unpaged":false
       },
       "last":true,
       "totalPages":1,
       "totalElements":3,
       "size":10,
       "number":0,
       "sort":{
          "empty":true,
          "sorted":false,
          "unsorted":true
       },
       "first":true,
       "numberOfElements":3,
       "empty":false
    }
    

    但我只得到了这些属性:-

    enter image description here

    那么,为什么缺少诸如“data”、“Pay_from”、“documents”之类的属性呢?

    谢谢

    0 回复  |  直到 4 年前