Filtering an array of objects
people[?city=='London'].name
A JSON array of just the "name" field for every person whose city is London.
Test a JMESPath query against a JSON document and see the extracted result instantly.
Was this tool useful?
JMESPath is the query language AWS's own CLI uses to filter and reshape JSON output — the same expression works here, against any JSON, before it ends up baked into a script.
people[?city=='London'].name
A JSON array of just the "name" field for every person whose city is London.