The better way to deal with JSON data in Swift.
Nothing breaking new API changed. Just cleaning up some warnings in Xcode 10.2.
Compatible with Swift 5 and Xcode 10.2.
SwiftyJSON 4.2.0 requires Swift 4.2 compiler and Xcode 10 to build.
The minimum requirement of watchOS bumps to watchOS 3.0+.
This version removed all deprecated APIs. If you are still using outdated APIs, you should ship with the latest ones.
Codable
protocol support #923 (Thanks @wleii)This is the official release of SwiftyJSON 4.0.0
This version is Swift 4 compatible.
We've improved the documentation since 4.0.0-alpha.1.
This is a pre-release version of SwiftyJSON 4.0.0.
writtingOptionsKeys
now is writingOptionsKeys
.throws
for error handling
init(data, options opt, error)
now is init(data, options opt) throws
.Swift.Error
type instead of NSError
, now JSON's error is SwiftyJSONError
type.Thank @JackSteven, @mictab, @neoneye, @Tawfikk and others who helped review the pull requests and contribute to the documentations. 🎉 🎉
This release includes new features and shouldn’t break backwards compatibility with SwiftyJSON 3.1.3.
castNilToNSNull
to json rawString for converting nil to NSNull. (#610 Thanks @gsabran)init(object: Any)
becomes: init(_ object: Any)
. (#664 Thanks @MadsBogeskov)(Thanks all: @cwkatzmann, @victorlin, @looseyi, @takasek and @naeemshaikh90)
Swift 2.3 support with Xcode8