AnyCodable icon indicating copy to clipboard operation
AnyCodable copied to clipboard

Boolean encoding change in 0.6.3

Open mattmassicotte opened this issue 3 years ago • 1 comments

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}.

mattmassicotte avatar Mar 19 '22 23:03 mattmassicotte

ping @bddq relates to #65

pyrou avatar Apr 09 '22 16:04 pyrou