protected Iterator<JsonNode> getMapIterator(JsonNode node) {
List<JsonNode> list = new ArrayList<>(node.size() * 2);
Iterator<Map.Entry<String, JsonNode>> fieldIterator = node.fields();
while (fieldIterator.hasNext()) {
Map.Entry<String, JsonNode> field = fieldIterator.next();
list.add(new TextNode(field.getKey()));
list.add(field.getValue());
}
return list.iterator();
}