Read 'id'

42 views
Skip to first unread message

Wagner Apdo Passarella

unread,
Nov 29, 2016, 1:08:12 PM11/29/16
to JsonPath

HI, please, how can I read the 'id' tag that is within 'relationships' in this json, I already tested it with '$ [*]. [Relationships] [*]. Id' but returns the 4 ids, not just the two.

[
  {
    "relationships": [
      {
        "id": "60",
        "name": "TESTE",
        "slaAgreement": "Contrato padrão de SLA",
        "forceChildrenToHaveSomeAgreement": false,
        "allowAllServices": true
      }
    ],
    "id": "07569B78-53E1-4886",
    "codeReferenceAdditional": null,
    "isActive": true,
    "personType": 1,
    "profileType": 2,
    "accessProfile": "Cliente",
    "businessName": "TESTE",
    "corporateName": null,
    "cpfCnpj": null,
    "userName": "teste@.com.br",
    "password": null,
    "role": null,
    "bossId": null,
    "bossName": null,
    "classification": null,
    "createdDate": "2015-12-29T17:17:05.6793649",
    "createdBy": null,
    "changedDate": "2016-09-27T16:01:38.0425166",
    "changedBy": "2046244615",
    "observations": null,
    "teams": []
  },
  {
    "relationships": [
      {
        "id": "16492",
        "name": "TESTE1",
        "slaAgreement": "Contrato padrão de SLA",
        "forceChildrenToHaveSomeAgreement": false,
        "allowAllServices": true
      }
    ],
    "id": "10004201",
    "codeReferenceAdditional": null,
    "isActive": true,
    "personType": 1,
    "profileType": 2,
    "accessProfile": "Cliente",
    "businessName": "TESTE1",
    "corporateName": null,
    "cpfCnpj": null,
    "userName": "teste@.com.br",
    "password": null,
    "role": null,
    "bossId": null,
    "bossName": null,
    "classification": null,
    "createdDate": "2016-07-29T15:44:27.5903423",
    "createdBy": "2035283177",
    "changedDate": null,
    "changedBy": null,
    "observations": null,
    "teams": []
  }
]
Reply all
Reply to author
Forward
0 new messages