# JohnSundell/Unbox

[Deprecated] The easy to use Swift JSON decoder

Repository: https://github.com/JohnSundell/Unbox
Canonical: https://ross.abutalabs.com/products/unbox
Language: Swift
License: MIT
License Family: permissive
Topics: json, unbox, swift-json-decoder, swift, json-parsing, decoding
Archived: true
Last push: 2019-04-08T13:57:08+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4108, "days_push": 2704, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1928, forks 163 (observed 2026-08-28T04:05:55.812061+00:00)

## What it is
Unbox is a lightweight Swift library for decoding JSON into model objects with minimal boilerplate. It is now deprecated in favor of Swift's built-in Codable API and the Codextended project.

## Use cases
- decode  into swift model objects
- parse  api responses in an ios app
- map  dictionaries to swift structs
- handle optional and required  fields when decoding
- convert  data to typed swift values

## When to choose
- maintaining a legacy Swift codebase that already uses Unbox
- working on an old project targeting Swift versions without full Codable support

## When to avoid
- starting a new Swift project - use Codable instead
- you need a maintained library with ongoing support
- you want encoding as well as decoding

## Facets
- artifact type: library
- maturity: abandoned
- function: serialization, parser
- domain: developer-tools, backend, mobile-development
- platform: -
- tags: -decoding, deprecated, swift, model-mapping, ios, macos

## Member repositories
- JohnSundell/Unbox (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.812061+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-30T03:09:06.448281+00:00, confidence not recorded.
  - readme: https://github.com/JohnSundell/Unbox (fetched 2026-08-28T04:05:55.812061+00:00, sha e326e9b14e78)
- Data as of 2026-08-30T08:39:29.467469+00:00.
