[swift-users] Parsing Decimal values from JSON
kevin at klundberg.com
Mon Oct 30 20:27:38 CDT 2017
Just because JS doesn't know about decimals doesn't mean swift can't do
Evtim, I don't believe JSONDecoder provides the access you are looking
for. Have you filed a bug on bugs.swift.org?
On 10/30/2017 6:02 AM, Rimantas Liubertas via swift-users wrote:
> It seems that the JSON decoder parses it as Double then converts
> it to Decimal which introduces errors in the parsing. That
> behavior is in fact incorrect.
> has now idea about neither Decimal nor Integer numbers.
> Best regards,
> swift-users mailing list
> swift-users at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users