Discover Packages
github.com/gloo-foo/cmd-json
select
package
Version:
v0.1.9
Opens a new window with list of versions in this module.
Published: Jul 11, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Select returns a command that keeps each JSON value for which condition
reports true, emitting one compact value per line. Values that fail the
condition are dropped.
Shell analogue: jq 'select(...)'
Condition reports whether a decoded JSON value should be selected.
And combines multiple conditions with logical AND
FieldEquals returns a condition that checks if a field equals a specific value
FieldMatches returns a condition that checks if a field matches a predicate
HasField returns a condition that checks if an object has a specific field
Or combines multiple conditions with logical OR
Field names one key of a JSON object.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.