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

![](https://1550208191-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYfhIaTTw23Sf3L5jfe%2F-M4ONG6-KMi4Z0M3D3Jb%2F-M4ONblhlQI5NIT-edAd%2Fimage.png?alt=media\&token=211e1219-3de8-407a-82d7-78130dff512f)

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.
