I have the following Json object:
myJson = {1: {"grade": "A"}, 23: {"grade": "B"} }
I would like to iterate through the grades and if there is more than one grade, then I'd like to have the following string:
"A, B"
Separated by comma. If there is one element, then only "A".
How do I loop through the nested json object to delimit them by comma ? It is a JsonNode Jackson. Thank you.