---
title: "Discussion on \"The duplicate key that eats your config - and the 180-line CLI that catches it\" | Hashnode"
description: "Discussion on \"The duplicate key that eats your config - and the 180-line CLI that catches it\". A repeated key in a dict literal or a JSON object is not an error in Python - it silently keeps the last value and drops the rest. Here is dupekey, a tiny offline CLI that finds that quiet correctness bug in both your Python source and your JSON, and fails CI before it ships."
url: "https://hashnode.com/posts/dupekey/6ae80268fecdcea9fd4a0136"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The duplicate key that eats your config - and the 180-line CLI that catches it](https://jaytank.hashnode.dev/dupekey?utm_source=hashnode&utm_medium=feed)

A repeated key in a dict literal or a JSON object is not an error in Python - it silently keeps the last value and drops the rest. Here is dupekey, a tiny offline CLI that finds that quiet correctness bug in both your Python source and your JSON, and fails CI before it ships.

Nov 2 · 6 min read · jaytank.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#json](https://hashnode.com/tag/json)
-   [#staticanalysis](https://hashnode.com/tag/staticanalysis)
-   [#devops](https://hashnode.com/tag/devops)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)

## Written by

[JAY TANK](https://hashnode.com/@jaytank)

@jaytank

  
[View profile](https://hashnode.com/@jaytank)

Engineering insights on building and scaling modern software.

Cloud &amp; Platform Engineer focused on building systems that scale and endure. I explore how infrastructure, automation, and engineering practices come together to support modern software teams.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
