public class JsonPath
extends java.lang.Object
| Constructor and Description |
|---|
JsonPath() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkPath(java.lang.String jsonPath) |
static java.lang.Object |
read(JSONArray json,
java.lang.String jsonPath)
read the value of the given path for a JSONArray
|
static java.lang.Object |
read(JSONObject json,
java.lang.String jsonPath)
read the value of the given path
|
@CheckReturnValue
@Nonnull
public static java.lang.Object read(@Nonnull
JSONObject json,
@Nonnull
java.lang.String jsonPath)
throws PathNotFoundException
json - json objectjsonPath - json pathPathNotFoundException@CheckReturnValue
@Nonnull
public static java.lang.Object read(@Nonnull
JSONArray json,
@Nonnull
java.lang.String jsonPath)
throws PathNotFoundException
json - json arrayjsonPath - pathPathNotFoundExceptionpublic static void checkPath(@Nonnull
java.lang.String jsonPath)
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.