Jq Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


The pipeline flows primitives, maps and arrays.
The pipeline flows primitives, maps and arrays.
Individual strings flowing on a pipeline can be simulated with:
<syntaxhighlight lang='bash'>
echo \"red\" \"blue\" \"green\" | jq '.'
</syntaxhighlight>


=Iteration=
=Iteration=

Revision as of 19:09, 1 March 2019

Internal

Pipeline Content

The pipeline flows primitives, maps and arrays.

Individual strings flowing on a pipeline can be simulated with:

echo \"red\" \"blue\" \"green\" | jq '.'

Iteration

An iteration is pipeline content produced by the .[] filter, that converts and array into its individual elements.

Organizatorium

Conversion from a map to an array.

Conversion from array to a map?