public class BBJSONResolver extends Object
Constructor and Description |
---|
BBJSONResolver() |
Modifier and Type | Method and Description |
---|---|
static BBjString |
getValue(BBjString p_path$,
BBjString p_jsonContent$)
Given a dot-delimited JSON path and a JSON document as a string, traverses the JSON document
to extract the value.
|
static JsonNode |
resolvePath(BBjString p_parentNodeName$,
BBjString p_path$,
JsonNode p_jsonNode!) |
static JsonNode |
resolvePath(BBjString p_path$,
JsonNode p_jsonNode!)
Given a dot-delimited JSON path and a JSON document as a Jackson JSON document,
traverses the JSON document to extract the value.
|
public static BBjString getValue(BBjString p_path$, BBjString p_jsonContent$)
p_path$
- A dot-delimited JSON path specifying a value to extract from the JSON documentp_jsonContent$
- A JSON document in string formpublic static JsonNode resolvePath(BBjString p_path$, JsonNode p_jsonNode!)
p_path$
- A dot-delimited JSON path specifying a value to extract from the JSON documentp_jsonNode$
- A JSON document as a JsonNode objectpublic static JsonNode resolvePath(BBjString p_parentNodeName$, BBjString p_path$, JsonNode p_jsonNode!)