check-json doesn't detect duplicate keys · Issue #554 · pre-commit/pre-commit-hooks · GitHub
Skip to content

check-json doesn't detect duplicate keys #554

Description

@adamchainz

The YAML check does this since #351 but since the json module's default behaviour is to ignore duplicates, duplicates are still possible in JSON. I think a small object_pairs_hook can be used to detect duplicates?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions