Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional check: Duplicate members in JSON objects (RFC7493 I-JSON) #45

Open
jpmckinney opened this issue Sep 2, 2020 · 1 comment

Comments

@jpmckinney
Copy link
Member

“Objects in I-JSON messages MUST NOT have members with duplicate names”.

object_pairs_hook can be used to warn/raise if there are duplicate keys: https://stackoverflow.com/questions/14902299/json-loads-allows-duplicate-keys-in-a-dictionary-overwriting-the-first-value

Follow-up: OpenDataServices/cove#535

@jpmckinney jpmckinney changed the title RFC7493: I-JSON: Error on duplicate members in JSON objects Check for duplicate members in JSON objects (RFC7493 I-JSON) Oct 15, 2020
@duncandewhurst
Copy link

Whilst good to do, I don't remember seeing any data with duplicate keys, so I don't think this is a priority issue.

@jpmckinney jpmckinney changed the title Check for duplicate members in JSON objects (RFC7493 I-JSON) Additional check: Duplicate members in JSON objects (RFC7493 I-JSON) Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants