8000 [JsonEncoder] Fix encoding of dictionary with integer keys by mtarld · Pull Request #59308 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[JsonEncoder] Fix encoding of dictionary with integer keys #59308

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 8000 to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

mtarld
Copy link
Contributor
@mtarld mtarld commented Dec 27, 2024
Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

Fix encoding of dictionary with integer keys.

Previously, [1 => true, 2 => false] was encoded to {"": true, "": false}, now it is encoded to {"1": true, "2": false}.

Also improve test coverage about list, dictionaries and iterable.

@fabpot
Copy link
Member
fabpot commented Jan 17, 2025

Thank you @mtarld.

@fabpot fabpot merged commit e1a443c into symfony:7.3 Jan 17, 2025
11 checks passed
@mtarld mtarld deleted the fix/list-dict branch January 17, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0