You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReerJSON is a really fast JSON parser, and it's inspired by ZippyJSON and Ananda.
⚠️Important: When measuring the performance of Swift libraries, make sure you're building in Release Mode.
When building Swift code on DEBUG compilation, it can be 10-20x slower than equivalent code on RELEASE.
Benchmarks
JSONDecoder
iOS 17+
Lower than iOS 17
macOS
Tested with ReerJSON 0.3.0, ZippyJSON 1.2.15, IkigaJSON 2.3.2
Just replace JSONDecoder with ReerJSONDecoder wherever you want to use it. So instead of let decoder = JSONDecoder(), do let decoder = ReerJSONDecoder(), and everything will just work. This is because ReerJSONDecoder has the exact same API as JSONDecoder. Also, don't forget to add import ReerJSON in files where you use it.
Differences
Decoder Diff
Foundation
ReerJSON
JSON5
✅
✅
assumesTopLevelDictionary
✅
❌
Infinity and NaN
±Infinity, ±NaN
±Infinity, ±NaN, ±Inf and case-insensitive. See details
TODO
Add GitHub workflow for CI.
Support CodableWithConfiguration.
Support JSON5 decoding.
Implement ReerJSONEncoder.
License
This project is licensed under the MIT License.
Portions of this project incorporate code from the following source code or test code: