Is it possible to return 1-many field as array not object?

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
martinm
User
Posts: 1
Joined: Thu Oct 25, 2018 5:46 am

Is it possible to return 1-many field as array not object?

Post by martinm » Thu Oct 25, 2018 5:54 am

Hi,

Is it possible that I could define respond to return me 1-many field as an array not object?

Current respond:

Code: Select all

{
      "id": 12334,
      "owners": {
        "total": 1,
        "data": [
            {
                "id": 232,
                "firstName": "Martin",
                "lastName": "Thomas",
                "email": "@",
                "phone": "+01 1233455",
                "mobile": ""
            }
        ]
    },
}
Expected respond:

Code: Select all

{
      "id": 12334,
      "owners":  [
            {
                "id": 232,
                "firstName": "Martin",
                "lastName": "Thomas",
                "email": "@",
                "phone": "+01 1233455",
                "mobile": ""
            }
      ],
}
Thanks

Post Reply