# SwiftyJSON

The better way to deal with JSON data in Swift.

Repository: https://github.com/SwiftyJSON/SwiftyJSON
Canonical: https://ross.abutalabs.com/products/swiftyjson
Language: Swift
License: MIT
License Family: permissive
Topics: swiftyjson, json, swift, response, request, carthage, cocoapods, json-parsing-library, json-parser, json-parsing-swift
Last push: 2026-08-18T07:07:07+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 4459, "days_push": 15, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 22949, forks 3418 (observed 2026-08-28T04:11:34.231560+00:00)

## What it is
SwiftyJSON is a Swift library that simplifies parsing and manipulating JSON data with convenient subscript access and automatic optional handling. It eliminates the verbose, error-prone type-casting chains required by Swift's native JSONSerialization API.

## Use cases
- parse JSON responses from REST APIs in Swift
- access nested JSON values without optional chaining
- handle JSON data in iOS apps without crashes from type mismatches
- extract values from JSON with safe non-optional getters
- merge and manipulate JSON objects in Swift
- integrate JSON parsing with Alamofire or Moya networking

## When to choose
- you're building an iOS, macOS, tvOS, or watchOS app in Swift that consumes JSON APIs
- you want simpler, safer JSON access than JSONSerialization's verbose casting
- you prefer ergonomic subscript-based JSON traversal with automatic optional handling

## When to avoid
- you need strict Codable-based type-safe decoding into Swift models
- you're working in a language other than Swift
- you need streaming or high-performance JSON parsing for very large documents

## Facets
- artifact type: library
- maturity: stable
- function: serialization, parser, developer-tools
- domain: developer-tools, mobile-development, apis
- platform: cross-platform
- tags: -parsing, swift, cocoapods, carthage, ios, macos

## Member repositories
- SwiftyJSON/SwiftyJSON (main) score 67
- SwiftyJSON/Alamofire-SwiftyJSON (plugin) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:34.231560+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:56:50.234914+00:00, confidence not recorded.
  - readme: https://github.com/SwiftyJSON/SwiftyJSON (fetched 2026-08-28T04:11:34.231560+00:00, sha 50f537ff8181)
- Data as of 2026-08-30T08:39:29.467469+00:00.
