Few JSON functions required for diff application
| Constructor and description |
|---|
JsonUtil
() |
| Type | Name and description |
|---|---|
protected static java.util.List |
_help(java.lang.String[] pathNodes, java.lang.Object structure) |
static java.lang.String |
printMap(java.util.Map source)Simple alias for groovy.json.JsonOutput#prettyPrint(String jsonPayload) function |
static java.util.List |
walkJsonByPath(java.lang.String listPath, java.lang.Object structure)Searches inside of JSON object for element (another JSON object) that has key equal to element in listPath. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Simple alias for groovy.json.JsonOutput#prettyPrint(String jsonPayload) function
source - java.util.Map JSON object or java.util.Map that will be transformed into java.lang.String Searches inside of JSON object for element (another JSON object) that has key equal to element in listPath.
When last element in listPath reached, returns all elements that match specified Path.
structure under listPath pathlistPath - Node (or key) names separated with '.' for 'walking' im depth of JSON object in structurestructure - JSON object OR java.util.List of JSON objects that will be transformed and returned