Package com.networknt.schema.utils
Class JsonNodes
- java.lang.Object
-
- com.networknt.schema.utils.JsonNodes
-
public class JsonNodes extends Object
Utility methods for JsonNode.
-
-
Constructor Summary
Constructors Constructor Description JsonNodes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends com.fasterxml.jackson.databind.JsonNode>
Tget(com.fasterxml.jackson.databind.JsonNode node, JsonNodePath path)
Gets the node found at the path.static <T extends com.fasterxml.jackson.databind.JsonNode>
Tget(com.fasterxml.jackson.databind.JsonNode node, Object propertyOrIndex)
Gets the node given the property or index.
-
-
-
Method Detail
-
get
public static <T extends com.fasterxml.jackson.databind.JsonNode> T get(com.fasterxml.jackson.databind.JsonNode node, JsonNodePath path)
Gets the node found at the path.- Parameters:
node
- the nodepath
- the path- Returns:
- the node found at the path or null
-
get
public static <T extends com.fasterxml.jackson.databind.JsonNode> T get(com.fasterxml.jackson.databind.JsonNode node, Object propertyOrIndex)
Gets the node given the property or index.- Parameters:
node
- the nodepropertyOrIndex
- the property or index- Returns:
- the node given the property or index
-
-