Boost logo

Boost :

From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2024-06-04 14:43:15


On Jun 4, 2024, at 2:14 AM, John Abbott via Boost <boost_at_[hidden]> wrote:
>
> Hi,
>
> Feature request:
>
> I would like the JSON parse to inform me that duplicate keys were encountered.
> I believe they are currently silently handled (with a last-one-wins strategy).
>
> Thanks,
> John Abbott

As a data point, I use the technique described here (a custom parsing hook) to find duplicate keys when parsing JSON using Python.

https://stackoverflow.com/questions/14902299/json-loads-allows-duplicate-keys-in-a-dictionary-overwriting-the-first-value

— Marshall


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk