Handlebars jsonpath
Handlebars jsonpath: queries and filters JSON objects using a JSONPath expression.
Next
Runtime verified
Test scripts included
Queries and filters JSON objects using a JSONPath expression.
Syntax
{{jsonpath object expression}}
Returns any.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
object |
any | Yes | JSON object or array, or a JSON string, to search. |
expression |
string | Yes | The JSONPath expression to apply, beginning with $. |
Example
Tested in a Marketing Cloud Next email on 2026-11-25, alone in the email:
{{jsonpath (buildRowSetFromString "a|b|c" "|") "$[1]"}}rendersb, as documented (zero-based index).- Helper names are case-sensitive.
{{jsonPath …}}(camelCase) is rejected when the email is saved as an unsupported helper; only the documented spellingjsonpathworks.
Show Next test script
Show calls that fail in Next (one email each)
Marketing Cloud Next
Works as documented
Write the name in lowercase, as the docs do: jsonpath. The camelCase spelling jsonPath is rejected when the email is saved. Tested 2026-11-25 by rendering in a Marketing Cloud Next email.
See also
- AMPscript
BuildRowsetFromJSON— does a similar job in AMPscript, with a different call shape - Official reference