Skip to content
William W. Kimball, Jr., MBA, MSIS edited this page May 14, 2019 · 24 revisions

YAML Path

What is a YAML Path? A YAML Path is a human-friendly means of identifying one or more nodes within YAML, EYAML, or compatible data structures like JSON. Emphasis is deliberately on human-friendly. The idea here is to make it easy to find or change the data you need from the command-line or Python API. In fact, multiple representations of YAML Paths are supported, enabling users to express paths in whatever way is most intuitive to them. Other "yaml-path" implementations help you explore YAML data within various text editors. This implementation specifically exists to ease the tasks of querying and manipulating YAML from the command-line or your own Python applications.

Wait... did you say JSON? Yes; any valid JSON is also valid YAML, so YAML Paths also work perfectly well against JSON data.

This project's README.md file covers many examples of YAML Paths in their various representations. This Wiki exists to dig even deeper into YAML Path examples.

Clone this wiki locally