# JSONPath

{% hint style="warning" %}
The feature is available for [paid TestMace subscribers](https://testmace.com/pricing/) only.
{% endhint %}

A **JSONPath assertion** allows to check a value using a JSONPath selector.

This **assertion** interface is as follows:

![](/files/-M4ONblhlQI5NIT-edAd)

The following **JSONPath assertion** fields are shown in the screenshot:

* **Text** - the text to search the value in
* **Path** - a JSONPath selector
* **Expected value** - an expected value for this selector. The value should be represented as an array of expected elements.
* The **Use negative statement** flag means using the opposite assertion result, i.e. there should be no values for the specified selector in the text.

### Error Fixing

To get rid of an error, the XPath selector value is assigned to the expected value.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testmace.com/node-types/assertion-node/json-path.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
