Skip to content

Prevent empty dictionary with non-String keys from encoding as a JSON object. #3138

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.

This is for the main branch. Also:

… 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
Copy link
Contributor Author

@swift-ci please test

@millenomi
Copy link
Contributor Author

Please test with following PRs:
swiftlang/swift#41115

@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