I am sending a get request to the project rest api endpoint (https://domain-url/rest/api/2/project/projectKey)
I am using the unirest framework and confirmed that the user has administrator permissions to the project in question.
When I run locally, I am able to get the body of the request as an array. (See Below)
"body":{"array":{
However when I run from our jenkins server, when I read the body, array is set to false (See Below)
"body":{"array":false,"object":{
This is how I have my api call set up (in Java) :