Skip to content

What is JMESPath

Lowell Alleman edited this page Jul 17, 2020 · 2 revisions

What is this JMESPath?

JMESPath is used prominently in a few other projects/tools that you have already used:

  • Both AWS and the Azure's az CLI tools use JMESPath for their --query filter to reduce external JSON processing
  • Ansible json_query() filters allow for complex structures to be converted into simple loops
  • jp CLI tool is the command line interface for JMESPath

What JMESPath is NOT

Be careful not to confuse JMESPath with the following. While they all share the same goal, and some overlapping syntax, they are all different from JMESPath:

  • The jq command. (jq vs jp Confused yet?)
  • jsonpath
  • Splunk's spath command.

Learn more

More information can be found here http://jmespath.org/

Live Tutorials: http://jmespath.org/tutorial.html