Documentation
¶
Overview ¶
Package jsonpath reads one value out of a decoded JSON document by a path an operator writes: "$" for the document itself, ".name" or "['name']" for an object member, and "[n]" for an array element, as in "$.data.events" or "$.contact['id']" (#1870).
It is the subset of JSONPath that addresses one value. There are no wildcards, filters or recursive descent: a webhook source uses a path to find its event array, and an event's id, type and key, and each of those is one place in the document.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path is a parsed path.
Click to show internal directories.
Click to hide internal directories.