Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rnapier/rnjson
Generic JSON parser for Swift
https://github.com/rnapier/rnjson
Last synced: 2 days ago
JSON representation
Generic JSON parser for Swift
- Host: GitHub
- URL: https://github.com/rnapier/rnjson
- Owner: rnapier
- License: mit
- Created: 2021-01-26T13:59:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T20:20:34.000Z (about 2 years ago)
- Last Synced: 2023-03-22T19:07:24.912Z (over 1 year ago)
- Language: Swift
- Size: 141 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RNJSON
Data structure for encoding and decoding arbitrary JSON in Swift.
This is a full JSONEncoder/JSONDecoder replacement. That allows for features like maintaining exact decimal representations of numbers (avoiding
float rounding), maintaining key order, and allowing duplicate keys. If you just want "arbitrary JSON" that works with stdlib, see
https://stackoverflow.com/questions/65901928/swift-jsonencoder-encoding-class-containing-a-nested-raw-json-object-literal/65902852#65902852(Note that this whole thing is very experimental. It's just a toy project I'm playing with. If it's useful, feel free to use it, but I don't
take it very seriously.)