Skip to content

[5.6] Prevent empty dictionary with non-String keys from encoding as a JSON object. #3137

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

Conversation

millenomi
Copy link
Contributor

@millenomi millenomi commented Feb 1, 2022

Darwin encodes these as an empty array ([]), but SCF was encoding an empty JSON object instead ({}). Fixes https://bugs.swift.org/browse/SR-15781.

… object.

Darwin encodes these as an empty array (`[]`), but SCF was encoding an empty JSON object instead (`{}`). Fixes https://bugs.swift.org/browse/SR-15781.
@millenomi millenomi changed the title Prevent empty dictionary with non-String keys from encoding as a JSON object. [5.6] Prevent empty dictionary with non-String keys from encoding as a JSON object. Feb 1, 2022
@millenomi
Copy link
Contributor Author

@swift-ci please test

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