QuerySingle
Query JSON string/token for a single result.
Task version: 1.4.0
Required Frends version: 5.7+
Required .NET version: 8.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.JSON
Task Parameters
Json : Object
JSON input needs to be of type string or JToken
Default: -
Example: {"key":"value"}
Query : String
The query is of type JSONPath.
More details: http://goessner.net/articles/JsonPath/
Default: "$.key"
Example: ""$.key"
ErrorWhenNotMatched : Boolean
A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
Default: -
Example: true
ThrowErrorOnFailure : Boolean
Throw an exception if the task fails.
Default: True
Example: true
ErrorMessageOnFailure : String
Custom error message to include when the task fails. Leave empty to use the default error message.
Default: -
Example: Custom error message
Task Result
Success : Boolean
Operation complete without errors.
Example: true
Data : Object
Result data.
Example: {{ "Name": "Foo", "Products": [{ "Name": "Bar", "Price": 1 }]}}
Error : Error
Error information when the task fails and ThrowErrorOnFailure is false.
Example: object { string Message = "Query failed unexpectedly.", Exception AdditionalInfo }
Error.Message : String
Error message.
Example: Query failed unexpectedly.
Error.AdditionalInfo : Exception
Additional information about the error (exception).
Example: object { Exception AdditionalInfo }
Task Changelog
Changelog is not available for this Task.
Last updated
Was this helpful?

