public class JsonPathUtil extends Object
| Constructor and Description |
|---|
JsonPathUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildCorrectJsonPath(String jsonPath,
String parentJsonPath)
Build correct Jway Json path when provided annotation value may not be valid.
|
String |
getJsonPath(Collection<String> jsonPathStack)
Make a string out of all elements in the json collection.
|
Collection<String> |
resolveRelativeJsonPaths(CandidateField candidateField,
Collection<String> parentJsonPath)
Construct proper Json path using JsonProperty and JsonPath annotations.
|
public String getJsonPath(Collection<String> jsonPathStack)
jsonPathStack - the collection of json paths.public Collection<String> resolveRelativeJsonPaths(CandidateField candidateField, Collection<String> parentJsonPath)
candidateField - wraps Json annotations.parentJsonPath - the current relative json path.public String buildCorrectJsonPath(String jsonPath, String parentJsonPath)
jsonPath - current field json path.parentJsonPath - parent json path.Copyright © 2015 Elastic Path Software, Inc. All rights reserved.