# QuerySingle

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.JSON>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name             | Description                                                                                                                                                                  |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Json : `Object`  | <p>JSON input needs to be of type string or JToken</p><p><br>Default: <code>-</code><br>Example: <code>{"key":"value"}</code></p>                                            |
| Query : `String` | <p>The query is of type JSONPath.</p><p>More details: <http://goessner.net/articles/JsonPath/></p><p><br>Default: <code>"$.key"</code><br>Example: <code>""$.key"</code></p> |
| {% endtab %}     |                                                                                                                                                                              |

{% tab title="Parameter: Options" %}

| Name                            | Description                                                                                                                                                                                |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ErrorWhenNotMatched : `Boolean` | <p>A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p> |
| {% endtab %}                    |                                                                                                                                                                                            |

{% tab title="Result: Result" %}

| Name                | Description                                                                                                   |
| ------------------- | ------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean` | <p>Operation complete without errors.<br>Example: <code>true</code></p>                                       |
| Data : `Object`     | <p>Result data.<br>Example: <code>{{ "Name": "Foo", "Products": \[{ "Name": "Bar", "Price": 1 }]}}</code></p> |
| {% endtab %}        |                                                                                                               |
| {% endtabs %}       |                                                                                                               |
