public class JsonPathFacade extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_ARRAY_STRING |
Constructor and Description |
---|
JsonPathFacade(String targetJson) |
Modifier and Type | Method and Description |
---|---|
String |
getCurrentJson() |
com.fasterxml.jackson.databind.JsonNode |
getJSON() |
static com.fasterxml.jackson.databind.ObjectMapper |
getPathFacadeObjectMapper() |
static boolean |
isNodeTypeNull(com.fasterxml.jackson.databind.JsonNode node) |
Set<JsonPathValue> |
listLeafValues() |
com.fasterxml.jackson.databind.JsonNode |
nullIfNodeTypeNull(com.fasterxml.jackson.databind.JsonNode node) |
com.fasterxml.jackson.databind.JsonNode |
readObjectValue(String jsonPathExpression) |
com.fasterxml.jackson.databind.JsonNode |
readObjectValue(String jsonPathExpression,
boolean processArray) |
String |
readStringValue(String jsonPathExpression) |
String |
readStringValue(String jsonPathExpression,
boolean emptyStringIfNull) |
void |
writeValue(String jsonPathExpression,
Object value) |
public static final String EMPTY_ARRAY_STRING
public JsonPathFacade(String targetJson)
public static com.fasterxml.jackson.databind.ObjectMapper getPathFacadeObjectMapper()
public com.fasterxml.jackson.databind.JsonNode getJSON()
public String getCurrentJson()
public com.fasterxml.jackson.databind.JsonNode readObjectValue(String jsonPathExpression)
public com.fasterxml.jackson.databind.JsonNode readObjectValue(String jsonPathExpression, boolean processArray)
public static boolean isNodeTypeNull(com.fasterxml.jackson.databind.JsonNode node)
public com.fasterxml.jackson.databind.JsonNode nullIfNodeTypeNull(com.fasterxml.jackson.databind.JsonNode node)
public Set<JsonPathValue> listLeafValues()
Copyright © 2019. All rights reserved.