Skip to content

del(f) changes the order of keys #436

Description

@mrazauskas

Thanks for jaq. Great project!

I have noticed that del(f) changes the order of keys. That does not happen with jq:

  • echo '{"a": 1, "b": 2, "c": 3, "d": 4}' | jaq 'del(.b)' -> {"a": 1, "d": 4, "c": 3}
  • echo '{"a": 1, "b": 2, "c": 3, "d": 4}' | jq 'del(.b)' -> {"a": 1, "c": 3, "d": 4}

The output data is correct. Unnecessary diff in a large JSON file is the only issue.

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