YAML to JSON Block Scalar Trailing Newline: Why \n Appears
A YAML literal block written with a bare pipe keeps its final line break, and JSON can only show that character as an escape. Compare |, |- and |+ and check the decoded value.
A YAML literal block written with a bare pipe keeps its final line break, and JSON can only show that character as an escape. Compare |, |- and |+ and check the decoded value.