Created
April 2, 2020 13:31
-
-
Save priyanshus/a1ce2fe592a6ef78a78126d028d9daae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void recursiveNode(JsonNode node) { | |
Iterator<Map.Entry<String, JsonNode>> it = node.fields(); | |
if (node.isTextual() & node.toString().contains("sample")) { | |
System.out.println(node.toString()); | |
} | |
while (it.hasNext()) { | |
JsonNode temp = it.next().getValue(); | |
recursiveNode(temp); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment