# SwiftyJSON

> The better way to deal with JSON data in Swift

Source: https://talira.ai/catalog/swiftyjson-fwb47wa2
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json)
- Platforms: ios, macos, tvos, watchos[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: no[^2]
- Backed by: [SwiftyJSON](https://talira.ai/orgs/swiftyjson.md)

SwiftyJSON makes JSON easier to work with in Swift, whose strict typing makes nested JSON from JSONSerialization a chain of optional casts. A JSON value is read by subscripting with keys and indexes, looped over, and converted with optional getters that return nil or non-optional getters that fall back to a default, with errors for missing keys or wrong types. It can also set values, build JSON from literals, merge two JSON values, remove elements and get the raw object back. Its README shows it with Alamofire and Moya. It installs with CocoaPods, Carthage or Swift Package Manager.

## Links

- GitHub: https://github.com/SwiftyJSON/SwiftyJSON

## Problems it solves

- read nested JSON in Swift without a chain of optional casts
- parse a JSON API response in my iOS app quickly
- safely get a value from deeply nested JSON in Swift

## Features

- subscript JSON by key and index
- optional and non-optional getters
- errors for missing keys and wrong types
- setters and literal convertibles
- merge JSON values
- remove elements
- raw object access
- CocoaPods, Carthage and Swift Package Manager

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.45, adoption 0.87, momentum 0.66, community 0.89, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- latest release 5.0.2 2.7 years ago
- 22.9k GitHub stars
- 163 contributors
- has a company behind it

## Sources

[^1]: https://github.com/SwiftyJSON/SwiftyJSON/blob/master/LICENSE (checked 24 Nov 2026)
[^2]: https://github.com/SwiftyJSON/SwiftyJSON (checked 24 Nov 2026)
