This is how much JsonNode response has different key value pairs, similar to the example below. How can I traverse it to get the response in both key and value pair. Thank you.
{
"message": "Results field contain api response",
"results": {
"Person 1": "USA",
"Person 2": "India",
"Name 3": "Europe",
"People": "Germany"
}
}```
This worked for me. PersonInfo class will contain getter and setter for person and country.