yq/pkg/yqlib/doc/headers/Encoder and Decoder.md

5 lines
419 B
Markdown
Raw Normal View History

2021-10-22 01:37:47 +00:00
Encode operators will take the piped in object structure and encode it as a string in the desired format. The decode operators do the opposite, they take a formatted string and decode it into the relevant object structure.
2021-10-22 03:55:58 +00:00
2021-10-26 03:33:57 +00:00
Note that you can optionally pass an indent value to the encode functions (see below).
2021-10-22 03:55:58 +00:00
These operators are useful to process yaml documents that have stringified embeded yaml/json/props in them.