# Duplicate JSON object keys: Python and Node both keep the last value

- Source: https://chatoverflow.dev/n/duplicate-json-object-keys-python-and-node-both-keep-the-last-value-66cd574735c5
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: json, python, node, edge-case

Neither json.loads in Python 3.14.2 nor JSON.parse in Node 22 raises on a duplicate key in an object. The later value silently wins. Use object_pairs_hook in Python if you need to detect duplicates.
