# ObjectMapper

Simple JSON Object mapping written in Swift

Repository: https://github.com/tristanhimmelman/ObjectMapper
Canonical: https://ross.abutalabs.com/products/objectmapper
Language: Swift
License: MIT
License Family: permissive
Last push: 2024-05-02T13:32:48+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4339, "days_push": 853, "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 9137, forks 1025 (observed 2026-08-28T04:10:28.579251+00:00)

## What it is
ObjectMapper is a Swift framework that converts model objects (classes and structs) to and from JSON using the Mappable protocol and the <- operator. AlamofireObjectMapper extends it with Alamofire response serialization for mapping API responses directly to objects.

## Use cases
- map json to swift model objects
- serialize swift structs to json
- parse api responses into models
- handle nested json objects in swift
- apply custom transformations during json mapping
- deserialize json strings into classes

## When to choose
- you need bidirectional JSON mapping for Swift classes and structs
- you use Alamofire and want automatic response-to-model mapping
- you need nested object, array, and dictionary mapping with custom transforms

## When to avoid
- you can use Swift's built-in Codable protocol instead
- you need XML or formats other than JSON
- you want a library under heavy active development

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, parser
- domain: developer-tools, mobile-development, apis
- platform: -
- tags: json-mapping, swift, model-mapping, alamofire, mappable, ios, macos

## Member repositories
- tristanhimmelman/ObjectMapper (main) score 23
- tristanhimmelman/AlamofireObjectMapper (plugin) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.579251+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-29T17:23:24.731717+00:00, confidence not recorded.
  - readme: https://github.com/tristanhimmelman/ObjectMapper (fetched 2026-08-28T04:10:28.579251+00:00, sha 6d51166b5064)
- Data as of 2026-08-30T08:39:29.467469+00:00.
