com.fasterxml.jackson.core
jackson-core
2.1.4
com.fasterxml.jackson.core
jackson-databind
2.1.4
com.fasterxml.jackson.core
jackson-annotations
2.1.4
commons-io
commons-io
2.5
public static void jsonLeaf(JsonNode node)
{
if (node.isValueNode())
{
System.out.println(node.toString());
return;
}
if (node.isObject())
{
Iterator> it = node.fields();
while (it.hasNext())
{
Entry entry = it.next();
jsonLeaf(entry.getValue());
}
}
if (node.isArray())
{
Iterator it = node.iterator();
while (it.hasNext())
{
jsonLeaf(it.next());
}
}
}
public static void main(String[] args)</