Skip to content
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

Boolean encoding change in 0.6.3 #67

Open
mattmassicotte opened this issue Mar 19, 2022 · 1 comment
Open

Boolean encoding change in 0.6.3 #67

mattmassicotte opened this issue Mar 19, 2022 · 1 comment

Comments

@mattmassicotte
Copy link

Hello!

I've noticed that in 0.6.3, the encoding of boolean types has changed in certain circumstances. I've narrowed down the code causing me issues to this:

var options: AnyCodable {
    return [
        "key": true,
    ]
}

In < 0.6.3, this would result in the JSON data {"key": true}. In 0.6.3, it produces {"key": 1}.

@pyrou
Copy link

pyrou commented Apr 9, 2022

ping @bddq
relates to #65

minacle added a commit that referenced this issue Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants