Skip to content

JSON key "<<" is converted to "!!merge <<" in YAML #53

Description

@alurm

Hello.

Unexpected output:

$ echo '{"<<": 3}' | yj -jy
!!merge <<: 3

This doesn't round-trip, which feels wrong to me:

$ echo '{"<<": 3}' | yj -jy | yj -yj
Error parsing YAML: map merge requires map or sequence of maps as the value

Expected output:

$ echo '{"<<": 3}' | yj -jy
"<<": 3

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