Swiftpack.co - Qata/MonadicJSON as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Qata.
Qata/MonadicJSON 5.0.3
A JSONDecoder that correctly preserves the values of floating point numbers
⭐️ 16
🕓 2 years ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/Qata/MonadicJSON.git", from: "5.0.3")

MonadicJSON

The JSONDecoder supplied by Foundation is currently broken when it comes to isomorphic decoding of JSON numbers with fractional precision (what would be decoded to Float, Double and Decimal). You can read about the issue on the Swift bugtracker.

This project does not aim to be faster than the built-in JSONSerialization-based JSONDecoder, simply to be correct. Tests have shown a significant slowdown when using this decoder over the inbuilt one, so if you don't need absolute precision, do not use this decoder.

This project is not intended as a permanent replacement for JSONDecoder, but purely as a stopgap until SR-7054 is resolved.

GitHub

link
Stars: 16
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

5.0.3
2 years ago

The minimum OS requirements have been lowered.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics