public abstract class JsonEngine extends Object
| Constructor and Description |
|---|
JsonEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Object obj,
String key,
Object val) |
protected static Object |
asPrimitiveValue(String string) |
static JsonEngine |
getDefault() |
static String |
getJsonElementKey(String jsonPathString)
Get object key at the given JSON path.
|
abstract com.jayway.jsonpath.spi.json.JsonProvider |
getJsonProvider() |
static String |
getParentJsonPath(String jsonPathString)
Get JSON path to the parent of the object at the given JSON path.
|
Collection<String> |
getPropertyKeys(Object jsonElement) |
boolean |
isJsonObject(Object jsonElement) |
protected boolean |
isJsonPrimitive(Object jsonElement) |
boolean |
isNullOrEmptyJson(Object jsonElement) |
abstract Object |
parse(String string) |
String |
toJsonString(Object object) |
public static JsonEngine getDefault()
public static String getJsonElementKey(String jsonPathString)
public abstract com.jayway.jsonpath.spi.json.JsonProvider getJsonProvider()
public static String getParentJsonPath(String jsonPathString)
public Collection<String> getPropertyKeys(Object jsonElement)
public boolean isJsonObject(Object jsonElement)
protected boolean isJsonPrimitive(Object jsonElement)
public boolean isNullOrEmptyJson(Object jsonElement)
Copyright © 2021. All rights reserved.