Skip to content

Commit

Permalink
Formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
RameshBabuPrudhvi committed Oct 12, 2024
1 parent 7041c0a commit e78602b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ public List<String> getList(String path) {
*/
private List<String> extractValuesFromArray(JsonNode currentNode, String[] keys, String key, List<String> values) {
String arrayKey = extractArrayKey(key);
currentNode = currentNode.path(arrayKey);
var resultNode = currentNode.path(arrayKey);

if (currentNode.isArray()) {
for (JsonNode node : currentNode) {
if (resultNode.isArray()) {
for (JsonNode node : resultNode) {
processArrayElement(keys, arrayKey, node, values);
}
}
Expand Down

0 comments on commit e78602b

Please sign in to comment.