parse recursive nested field using jackson
问题 I have a below JSON and from which I need to make a Map<String, String> . In the below JSON, I have only three levels of parentCategory but in general it can be more or sometimes it can be less. Key of my map will be 79720 which is id of categories section and value should be 10987 which is id of last parentCategory . Now I can have nested parentCategory inside them so I am having issues making a POJO for this. I can have one level parentCategory or I can have nested parentCategory inside