| Package | Description |
|---|---|
| com.alibaba.fastjson2 |
| Modifier and Type | Method and Description |
|---|---|
static JSONPath.Feature |
JSONPath.Feature.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONPath.Feature[] |
JSONPath.Feature.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
JSONPath.extract(java.lang.String json,
java.lang.String path,
JSONPath.Feature... features)
Extracts a value from JSON string using the specified path and features
|
static JSONPath |
JSONPath.of(java.lang.String path,
JSONPath.Feature... features)
Creates a JSONPath from a path string with specified features
|
static JSONPath |
JSONPath.of(java.lang.String path,
java.lang.reflect.Type type,
JSONPath.Feature... features)
Creates a typed JSONPath from a path string, type and features
|
(package private) JSONPath |
JSONPathParser.parse(JSONPath.Feature... features) |
| Constructor and Description |
|---|
JSONPath(java.lang.String path,
JSONPath.Feature... features)
Constructs a JSONPath with the specified path and features
|
JSONPathMulti(java.lang.String path,
java.util.List<JSONPathSegment> segments,
JSONPath.Feature... features) |
JSONPathSingle(JSONPathSegment segment,
java.lang.String path,
JSONPath.Feature... features) |
JSONPathSingleIndex(java.lang.String path,
JSONPathSegmentIndex segment,
JSONPath.Feature... features) |
JSONPathSingleName(java.lang.String path,
JSONPathSegmentName segment,
JSONPath.Feature... features) |
JSONPathTwoSegment(java.lang.String path,
JSONPathSegment first,
JSONPathSegment second,
JSONPath.Feature... features) |