java generic multi-level wild card

Was having a interesting issue on Generic which i thought i was pretty familiar with. Basically i need to pass a Map<String, List<SubClass>()> to a Map<String, List<SuperClass>()> I was thinking i could just do Map<String, List<? extends SuperClass>()> in the method signature, then i should be fine. But i get compiler error complaining type not…

Converting Nested Json files to CSV in java with reflection

Objective: convert nested json to csv. The csv header should contain fields from each level and separated by ‘_’. Example: Header should become: firstName, lastName, isAlive, age, address_streeAddress, address_city, address_state, address_postalCode, phoneNumbers_type….etc Actions: 1. deserialize┬áthe json to the mapped java object using gson or jackson. 2. append header first using reflection 3. append values with…