| Package | Description |
|---|---|
| com.jayway.jsonpath | |
| com.jayway.jsonpath.internal |
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
WriteContext.add(JsonPath path,
java.lang.Object value)
Add value to array at the given path
|
DocumentContext |
WriteContext.add(java.lang.String path,
java.lang.Object value,
Predicate... filters)
Add value to array
|
DocumentContext |
WriteContext.delete(JsonPath path)
Deletes the given path
|
DocumentContext |
WriteContext.delete(java.lang.String path,
Predicate... filters)
Deletes the given path
|
DocumentContext |
WriteContext.map(JsonPath path,
MapFunction mapFunction)
Replaces the value on the given path with the result of the
MapFunction. |
DocumentContext |
WriteContext.map(java.lang.String path,
MapFunction mapFunction,
Predicate... filters)
Replaces the value on the given path with the result of the
MapFunction. |
static DocumentContext |
JsonPath.parse(java.io.File json)
Parses the given JSON input using the default
Configuration and
returns a DocumentContext for path evaluation |
DocumentContext |
ParseContext.parse(java.io.File json) |
static DocumentContext |
JsonPath.parse(java.io.File json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.io.InputStream json)
Parses the given JSON input using the default
Configuration and
returns a DocumentContext for path evaluation |
DocumentContext |
ParseContext.parse(java.io.InputStream json) |
static DocumentContext |
JsonPath.parse(java.io.InputStream json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
DocumentContext |
ParseContext.parse(java.io.InputStream json,
java.lang.String charset) |
static DocumentContext |
JsonPath.parse(java.lang.Object json)
Parses the given JSON input using the default
Configuration and
returns a DocumentContext for path evaluation |
DocumentContext |
ParseContext.parse(java.lang.Object json) |
static DocumentContext |
JsonPath.parse(java.lang.Object json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.lang.String json)
Parses the given JSON input using the default
Configuration and
returns a DocumentContext for path evaluation |
DocumentContext |
ParseContext.parse(java.lang.String json) |
static DocumentContext |
JsonPath.parse(java.lang.String json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.net.URL json)
Parses the given JSON input using the default
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.net.URL json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
DocumentContext |
WriteContext.put(JsonPath path,
java.lang.String key,
java.lang.Object value)
Add or update the key with a the given value at the given path
|
DocumentContext |
WriteContext.put(java.lang.String path,
java.lang.String key,
java.lang.Object value,
Predicate... filters)
Add or update the key with a the given value at the given path
|
DocumentContext |
WriteContext.renameKey(JsonPath path,
java.lang.String oldKeyName,
java.lang.String newKeyName)
Renames the last key element of a given path.
|
DocumentContext |
WriteContext.renameKey(java.lang.String path,
java.lang.String oldKeyName,
java.lang.String newKeyName,
Predicate... filters)
Renames the last key element of a given path.
|
DocumentContext |
WriteContext.set(JsonPath path,
java.lang.Object newValue)
Set the value a the given path
|
DocumentContext |
WriteContext.set(java.lang.String path,
java.lang.Object newValue,
Predicate... filters)
Set the value a the given path
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsonContext |
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
JsonContext.add(JsonPath path,
java.lang.Object value) |
DocumentContext |
JsonContext.add(java.lang.String path,
java.lang.Object value,
Predicate... filters) |
DocumentContext |
JsonContext.delete(JsonPath path) |
DocumentContext |
JsonContext.delete(java.lang.String path,
Predicate... filters) |
DocumentContext |
JsonContext.map(JsonPath path,
MapFunction mapFunction) |
DocumentContext |
JsonContext.map(java.lang.String path,
MapFunction mapFunction,
Predicate... filters) |
DocumentContext |
JsonContext.parse(java.io.File json) |
DocumentContext |
JsonContext.parse(java.io.InputStream json) |
DocumentContext |
JsonContext.parse(java.io.InputStream json,
java.lang.String charset) |
DocumentContext |
JsonContext.parse(java.lang.Object json) |
DocumentContext |
JsonContext.parse(java.lang.String json) |
DocumentContext |
JsonContext.put(JsonPath path,
java.lang.String key,
java.lang.Object value) |
DocumentContext |
JsonContext.put(java.lang.String path,
java.lang.String key,
java.lang.Object value,
Predicate... filters) |
DocumentContext |
JsonContext.renameKey(JsonPath path,
java.lang.String oldKeyName,
java.lang.String newKeyName) |
DocumentContext |
JsonContext.renameKey(java.lang.String path,
java.lang.String oldKeyName,
java.lang.String newKeyName,
Predicate... filters) |
DocumentContext |
JsonContext.set(JsonPath path,
java.lang.Object newValue) |
DocumentContext |
JsonContext.set(java.lang.String path,
java.lang.Object newValue,
Predicate... filters) |