Missing "zip" function in JMESPath?

n8n spec
ver: 1.45.1
DB: SQLite
hosting: localhost/docker/window

i have justified the JMESPath expression is working in their community site

But when i try to run in n8n Javascript block, it failed. Based on the log it seems like n8n’s JMESpath library doesn’t recognize “zip” method?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @weilies_chok, thanks for reaching out! JMESPath does not define a zip method. Instead, here’s a resource for helping you get started with a zip method alternative in javascript. Zip arrays in JavaScript? - Stack Overflow

thanks Ludwig, but any plan for the JMESpath to be enhance with more methods in n8n?
also, i noticed n8n doc point me to https://jmespath.org/, which some of the expression doesn’t work as expected. Later i moved on to JMESPath, using the same expression and it’s working.

So i bet the later site is more reliable/advanced?

i tried “map”, but it hit issue as “items” is currently not supported

i tried in JMESpath community site, the expression is valid

may i know if i am planning to use expression, how to deal with it in n8n? (i know writting JS can simply achieve that but i want to make good use of JMESpath)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.