> For the complete documentation index, see [llms.txt](https://docs.testmace.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testmace.com/node-types/assertion-node/json-path.md).

# 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.
