public class JSON extends Object
| Constructor and Description |
|---|
JSON() |
| Modifier and Type | Method and Description |
|---|---|
static String |
evaluate(String jsonpath,
Object data)
This method evaluates the jsonpath expression on the supplied
node.
|
static boolean |
predicate(String jsonpath,
Object data)
This method evaluates the predicate based on the jsonpath
expression on the supplied node.
|
static String |
serialize(Object data)
This method serializes the supplied object to a JSON document.
|
public static String serialize(Object data)
data - The objectpublic static boolean predicate(String jsonpath, Object data)
jsonpath - The jsonpath expressiondata - The json dataCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.