79367729

Date: 2025-01-18 18:15:46
Score: 1
Natty:
Report link

Used Apache BeanUtils to access the nested value -

try { 
    Object value = PropertyUtils.getProperty(givenMap, path);
} catch (Exception e) {
    // log
}

This expects path to be dot separated keys.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dark Matter