JsonParseTask
The adapter walks the path specified and returns the value found at that result. If returning JSON data from the HttpGet or HttpPost adapters, you must use this adapter to parse the response.
Input: String representation of a JSON object.
Returns: A numerical result.
Example: Parses the price field from a JSON object
{
"jsonParse": {
"path": "$.price"
}
}
Fields
Name | Type | Description |
---|---|---|
aggregationMethod | The technique that will be used to aggregate the results if walking the specified path returns multiple numerical results. | |
path | string | JSONPath formatted path to the element. https://t.ly/uLtw / https://www.npmjs.com/package/jsonpath-plus |
Enums
AggregationMethod
The methods of combining a list of numerical results.
Value | Name | Description |
---|---|---|
0 | NONE | |
1 | MIN | Grab the minimum value of the results. |
2 | MAX | Grab the maximum value of the results. |
3 | SUM | Sum up all of the results. |
4 | MEAN | Average all of the results. |
5 | MEDIAN | Grab the median of the results. |