---
title: "JSONVAL"
url: "https://help.formsfly.com/en/article/jsonval"
language: "en"
last_updated: "2025-01-13T16:46:38.452Z"
---

# JSONVAL

Returns the value from the given JSON for the given JSONPath query.

* * *

### Syntax

`**JSONVAL({{myjson}}, 'resp.token')**`

### Example

```plaintext
JSONVAL({{myjson}}, 'resp.token')
```

### Notes

The JSONPath '$.' prefix is not required.

Use the optional true/false validate parameter to raise an error if the query fails.

[Learn more about JSONPath](https://goessner.net/articles/JsonPath/index.html)  
[Test your JSONPath here](http://jsonpath.com/)

### Related 

[JSONLIST](https://help.formsfly.com/en/article/jsonlist)
