Flow collections reduce structural whitespace
Block mappings and sequences depend on indentation and line structure. Flow-style braces and brackets allow the same parsed collections to be serialized more compactly without treating whitespace inside scalar values as formatting.
The operation parses before writing and reports output bytes. It does not promise the size savings of HTTP or archive compression, which operate across repeated content.