for (Map.Entry<?, ?> entry : map.entrySet()) {
final Object key = entry.getKey();
final Object value = entry.getValue();
if (key != null) {
currentPath.push(key.toString());
} else {
currentPath.push(StringPool.NULL);
}
// check if we should include the field