Constructs a new JsonParseTask.
Optional
properties: IJsonParseTaskProperties to set
The technique that will be used to aggregate the results if walking the specified path returns multiple numerical results.
JSONPath formatted path to the element. https://t.ly/uLtw https://www.npmjs.com/package/jsonpath-plus
Static
createCreates a new JsonParseTask instance using the specified properties.
Optional
properties: IJsonParseTaskProperties to set
JsonParseTask instance
Static
decodeDecodes a JsonParseTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
JsonParseTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a JsonParseTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
JsonParseTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified JsonParseTask message. Does not implicitly verify messages.
JsonParseTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified JsonParseTask message, length delimited. Does not implicitly verify messages.
JsonParseTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a JsonParseTask message from a plain object. Also converts values to their respective internal types.
Plain object
JsonParseTask
Static
getStatic
toCreates a plain object from a JsonParseTask message. Also converts values to other types if specified.
JsonParseTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
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