JSON

Frends.JSON.QuerySingle / 1.4.0

Summary

Selects from JSON with a JSONPath expression and returns one result rather than a collection.

Typical use — reading a single field out of a response without unwrapping a collection first

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Input parameters.

Name Type Default Example Description
Json Object {\"key\":\"value\"}

JSON input needs to be of type string or JToken

Query String "$.key" "\"$.key\"

The query is of type JSONPath. More details: http://goessner.net/articles/JsonPath/

An unhandled error has occurred. Reload 🗙