I am receiving response in the following structure:
[{
"builds": [{
"description": "JP MORGAN",
"land": "FU",
"companyCode": "1234",
"accountNumber": "00000000000",
"shortID4": "XYS"
}
]
}
]
Whenever I want to extract JSON property, e.g. description, the final object is not as I expect. It creates List having ArrayString.
List<String> values = resp.path("builds.description");
Whenever I want to test/print it is not simply possible because of the structure.
How to get the value from this JSON object to simple List which would be containing the values? Thanks