Skip to content

YAML stream to JSON array #19

@bryanlarsen

Description

@bryanlarsen

If you run yaml2json on a multi-document YAML file, the output is not valid JSON. It'd be nice to have an option to output an array instead of a JSON stream.

Not a big deal, an easy workaround is to pipe it to jq -s

foo | yaml2json | jq -s -r .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions