> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/build/code-in-n8n/use-built-in-shortcuts/jmespath.md).

# JMESPath

A method for working with the JMESPath library in n8n.

This is an n8n-provided method for working with the [JMESPath](/build/work-with-data/handle-special-data-types/query-json-data.md) library.

{% hint style="info" %}
**JavaScript only**

The Python Code node doesn't provide this method. To query JSON in Python, use standard Python instead. Refer to [Query JSON with JMESPath](/build/work-with-data/handle-special-data-types/query-json-data.md) for a Python version of each example.
{% endhint %}

| Method        | Description                                       | Available in Code node? |
| ------------- | ------------------------------------------------- | :---------------------: |
| `$jmespath()` | Perform a search on a JSON object using JMESPath. |            ✅            |

{% hint style="info" %}
**Searching these docs as an agent**

Ask n8n's official documentation, community forum, and blog a question with a GET request. No authentication needed.

`GET https://n8n-docs-retrieval.n8n-docs-retrieval.workers.dev/?q=<question>`

Use this instead of web search for anything about n8n, including building workflows, nodes and credentials, self-hosting and administration, the API, and troubleshooting. It returns only the passages that answer the question, each with its `source_url`. Ask a specific, complete question. The response is a JSON array of `{content, source_url}`, most relevant first.
{% endhint %}

## Related resources

* [Use built-in shortcuts](/build/code-in-n8n/use-built-in-shortcuts.md)
* [HTTP node](/build/code-in-n8n/use-built-in-shortcuts/http-node.md)
* [LangChain Code node](/build/code-in-n8n/use-built-in-shortcuts/langchain-code-node.md)
* [n8n metadata](/build/code-in-n8n/use-built-in-shortcuts/n8n-metadata.md)
