Top "Jmespath" questions

JMESPath (JSON Matching Expression paths) is a query language for JSON.

Filter S3 list-objects results to find a key matching a pattern

I would like to use the AWS CLI to query the contents of a bucket and see if a particular …

amazon-s3 pattern-matching aws-cli jmespath
Xpath like query for nested python dictionaries

Is there a way to define a XPath type query for nested python dictionaries. Something like this: foo = { 'spam':'eggs', …

python xpath jmespath json-path-expression
ansible json-query path to select item by content

Does anyone know what json-query filter can be used to select Tigger's food in the sample JSON below? The JSON …

json ansible jmespath json-query
Listing instance name among other data with aws-cli 1.3.6

Using aws-cli 1.3.6 I am trying to get a simple table of my ec2 instances with the Name and state. I …

amazon-web-services amazon-ec2 aws-cli jmespath
sort output of describe-instances?

I saw the previous question on this topic, but the answer was just "pipe it to a scripting language!", which …

aws-cli jmespath
How to handle JMESPath contains filter on attribute that may be null?

I want to filter the output from the Azure CloudShell command az ad sp list which outputs a JSON array, …

shell azure null filtering jmespath
Filter object by property and select with key in jmespath

I'm trying to filter properties of an object in jmespath based on the value of a subproperty and want to …

json ansible normalization jmespath
How to filter dictionaries in Jinja?

I have a dictionary of packages with package-name being the key and a dictionary of some details being the value: { "…

dictionary ansible jinja2 jmespath
JMESPath query expression with bash variable

Messing around with a simple aws cli query to check for the existence of a Lambda function and echo the …

bash aws-cli jmespath
JMESPath JSON filter with multiple matches

I have a json block that looks a bit like this (have you guessed from AWS) { "Vpcs":[ { "VpcId":"vpc-blabla1", "OtherKey":"…

json amazon-cloudformation jmespath