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
Feature request: allow_dupkeys #122
Comments
Dan Book <notifications@github.com> schrieb am Do., 14. Feb. 2019, 20:25:
As a result of #75 <#75>
duplicate keys in parsed JSON throw an exception. Relaxed mode allows
duplicate keys, but there is no way to allow duplicate keys without turning
on relaxed mode.
No, to my knowledge we've added an allow_dupkeys option independent of
relaxed.
if not that's a bug, but I believe there's a testcase to turn on only
dupkeys.
Unlike the other syntax allowed by relaxed mode, duplicate keys are still
… valid (the spec only says that keys SHOULD be unique). In addition,
JSON::PP, JSON::XS, and Mojo::JSON all allow duplicate keys, so this option
would help with cross compatibility.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#122>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACjUY53Qiowe_FYp5BSYHYntx5sApo0ks5vNbgXgaJpZM4a8Rm->
.
|
There's no option that I can find:
|
Oops, I see. I went with the shortcut: "relaxed implements allow_dupkeys" |
rurban
added a commit
that referenced
this issue
Feb 15, 2019
rurban
added a commit
that referenced
this issue
Feb 15, 2019
requested by @Grinnz Fix allow_dupkeys on the slow decode_hv path also, covered by one new test.
rurban
added a commit
that referenced
this issue
Feb 15, 2019
requested by @Grinnz Fix allow_dupkeys on the slow decode_hv path also, covered by one new test.
Done with 4.09 |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a result of #75 duplicate keys in parsed JSON throw an exception. Relaxed mode allows duplicate keys, but there is no way to allow duplicate keys without turning on relaxed mode. Unlike the other syntax allowed by relaxed mode, duplicate keys are still valid (the spec only says that keys SHOULD be unique). In addition, JSON::PP, JSON::XS, and Mojo::JSON all allow duplicate keys, so this option would help with cross compatibility.
The text was updated successfully, but these errors were encountered: