Skip to content

fix: keep a duplicate json key in its place - #105

Merged
HaoZeke merged 1 commit into
developfrom
fix/json-dup-place
Nov 27, 2026
Merged

HaoZeke merged 1 commit into
developfrom
fix/json-dup-place

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

fix: keep a duplicate json key in its place

json.toPy drops an earlier object member when a later key
decodes to the same text, including a \u escape of that
key. The old code appended the kept member at the later
index, so a key between the two copies moved ahead of it.
json.loads leaves the key where it first appeared and
updates the value. json.toPy still skips decoding a value
the document drops.

`json.toPy` drops an earlier object member when a later key
decodes to the same text, including a `\u` escape of that
key. The old code appended the kept member at the later
index, so a key between the two copies moved ahead of it.
`json.loads` leaves the key where it first appeared and
updates the value. `json.toPy` still skips decoding a value
the document drops.
@HaoZeke
HaoZeke merged commit 41929d1 into develop Nov 27, 2026
8 checks passed
@HaoZeke
HaoZeke deleted the fix/json-dup-place branch November 27, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant