public class JSONPath extends Object implements ObjectSerializer
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONPath.FilterSegement |
| Constructor and Description |
|---|
JSONPath(String path) |
JSONPath(String path,
SerializeConfig serializeConfig,
ParserConfig parserConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
arrayAdd(Object rootObject,
Object... values) |
static void |
arrayAdd(Object rootObject,
String path,
Object... values) |
static JSONPath |
compile(String path) |
boolean |
contains(Object rootObject) |
static boolean |
contains(Object rootObject,
String path) |
boolean |
containsValue(Object rootObject,
Object value) |
static boolean |
containsValue(Object rootObject,
String path,
Object value) |
Object |
eval(Object rootObject) |
static Object |
eval(Object rootObject,
String path) |
String |
getPath() |
boolean |
set(Object rootObject,
Object value) |
static void |
set(Object rootObject,
String path,
Object value) |
boolean |
setArrayItem(JSONPath path,
Object currentObject,
int index,
Object value) |
int |
size(Object rootObject) |
static int |
size(Object rootObject,
String path) |
void |
write(JSONSerializer serializer,
Object object,
Object fieldName,
Type fieldType,
int features) |
public JSONPath(String path)
public JSONPath(String path, SerializeConfig serializeConfig, ParserConfig parserConfig)
public boolean contains(Object rootObject)
public int size(Object rootObject)
public String getPath()
public boolean setArrayItem(JSONPath path, Object currentObject, int index, Object value)
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException
write in interface ObjectSerializerIOExceptionCopyright © 2012–2020 Alibaba Group. All rights reserved.