awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
tristanhimmelman avatar

tristanhimmelman/ObjectMapper

0
View on GitHub↗
9,146 stars·1,028 forks·Swift·MIT·20 views

ObjectMapper

ObjectMapper is a JSON serialization framework for Swift that maps JSON strings and dictionaries into strongly typed classes and structs. It functions as a data mapper and converter, facilitating the bidirectional transformation of data between raw JSON and Swift model objects.

The library uses protocol-based mapping to associate specific JSON keys with object properties. It supports nested key extraction via dot-notation pathing and employs custom transformation classes to bridge the gap between JSON and Swift types.

The framework provides capabilities for model validation during initialization, including throwable initializers to populate immutable properties. It also supports mapping inheritance between superclasses and subclasses, as well as context-aware mapping to share configuration across nested model hierarchies.

Features

  • JSON Serializers - Provides a comprehensive framework to convert application data into JSON and parse JSON responses into Swift models.
  • Object-to-Data Mapping Frameworks - Functions as a framework for mapping raw JSON structures into strongly typed Swift model objects.
  • JSON Key Association - Associates specific JSON keys with object properties to convert raw data into model classes or structs.
  • JSON-to-Model Mappers - Transforms JSON strings or dictionaries into typed model objects using configurable key mapping and transformations.
  • JSON Serialization Libraries - Transforms model objects into JSON strings or dictionaries for serialization and data transmission.
  • Nested Dictionary Utilities - Extracts values from deeply nested JSON structures or arrays using dot-notation within mapping keys.
  • Nested Object Mapping - Processes complex data structures where objects are embedded within other objects, arrays, or dictionaries.
  • Value Transformations - Converts values between JSON and model types using custom logic or predefined transformation classes.
  • JSON Path Navigation - Supports navigation of hierarchical JSON structures using dot-notation path segments to resolve values.
  • Swift Model Definitions - Provides a mechanism to define how raw JSON keys map to strongly typed Swift properties and nested structures.
  • JSON Serialization - Transforms model objects back into JSON format for storage or network transmission.
  • Type Conversion Classes - Implements dedicated transformation classes to separate type conversion logic from the data models.
  • Serialization Inheritance - Ensures shared data definitions are processed in subclasses by triggering mapping logic from parent classes.
  • Immutable Property Population - Populates constant properties during object creation using throwable initializers to maintain data integrity.
  • Data Integrity Validation - Inspects incoming JSON data during object initialization to prevent crashes by validating data integrity.
  • Failable Initializers - Uses throwable initializers to populate immutable properties, throwing errors if required JSON keys are missing or invalid.
  • Generic Type Resolution - Handles classes with generic type parameters by ensuring generic types conform to the mapping protocol.
  • JSON Schema Validation - Inspects JSON data during object initialization to determine whether the mapping process should proceed or abort.
  • Mapping Contexts - Provides an optional context object to share configuration across nested model hierarchies during the mapping process.
  • Data Parsing - Converts model objects to and from JSON.
  • Data Persistence - JSON object mapping.

Star history

Star history chart for tristanhimmelman/objectmapperStar history chart for tristanhimmelman/objectmapper

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with ObjectMapper

These projects share indexed features with ObjectMapper. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • jsonmodel/jsonmodelJSONModel avatar

    JSONModel/JSONModel

    6,813View on GitHub↗

    JSONModel is a data modeling framework and serialization library for Apple platforms, including iOS, macOS, watchOS, and tvOS. It transforms JSON strings and dictionaries into typed Swift objects to eliminate manual dictionary parsing. The framework provides a mapping system that utilizes custom key rules and dot-notation to resolve nested data hierarchies. It supports the conversion of complex JSON structures into organized model relationships and manages the transformation of JSON arrays into collections of typed model instances. The toolset includes data type transformation via custom tra

    Objective-C
    View on GitHub↗6,813
  • fasterxml/jacksonFasterXML avatar

    FasterXML/jackson

    9,740View on GitHub↗

    Jackson is a Java data binding framework and multi-format data serializer used to translate data structures into native language objects. It functions as a JSON data binding library and a streaming parser that reads and writes data as discrete tokens to process large datasets with minimal memory. The project distinguishes itself through a bytecode serialization accelerator that replaces standard reflection with generated bytecode to increase data binding speed. It employs a module-based extensibility model to support a wide range of formats beyond JSON, including XML, YAML, CSV, TOML, and bin

    hacktoberfestjacksonjava-json
    View on GitHub↗9,740
  • codermjlee/mjextensionCoderMJLee avatar

    CoderMJLee/MJExtension

    8,502View on GitHub↗

    MJExtension is a JSON serialization library and model mapping framework used to convert data between JSON strings and structured model objects. It functions as an object data mapper that handles the encoding and decoding of complex object hierarchies for network transmission and storage. The framework is a non-intrusive data mapper that uses reflection and runtime inspection to map raw data strings to application objects. This approach allows for data transformation without requiring base class inheritance, decorators, or extensions to the underlying model classes. The system supports recurs

    Objective-C
    View on GitHub↗8,502
  • alibaba/handyjsonalibaba avatar

    alibaba/handyjson

    4,262View on GitHub↗

    HandyJSON is a Swift JSON serialization library and data mapper. It functions as an object mapper that converts JSON data into typed Swift models and transforms Swift objects back into JSON strings for storage or transmission. The library uses reflection to automatically map JSON keys to object properties and supports custom mapping metadata to resolve naming differences between APIs and code. It provides capabilities for extracting values from deep nested paths within a JSON structure and supports the transformation of complex types such as dates and URLs. The framework handles both the des

    Swift
    View on GitHub↗4,262
Compare all 30 related projects→

Frequently asked questions

What does tristanhimmelman/objectmapper do?

ObjectMapper is a JSON serialization framework for Swift that maps JSON strings and dictionaries into strongly typed classes and structs. It functions as a data mapper and converter, facilitating the bidirectional transformation of data between raw JSON and Swift model objects.

What are the main features of tristanhimmelman/objectmapper?

The main features of tristanhimmelman/objectmapper are: JSON Serializers, Object-to-Data Mapping Frameworks, JSON Key Association, JSON-to-Model Mappers, JSON Serialization Libraries, Nested Dictionary Utilities, Nested Object Mapping, Value Transformations.

Which projects share features with tristanhimmelman/objectmapper?

Projects with overlapping indexed features include: jsonmodel/jsonmodel — JSONModel is a data modeling framework and serialization library for Apple platforms, including iOS, macOS, watchOS,… fasterxml/jackson — Jackson is a Java data binding framework and multi-format data serializer used to translate data structures into… codermjlee/mjextension — MJExtension is a JSON serialization library and model mapping framework used to convert data between JSON strings and… alibaba/handyjson — HandyJSON is a Swift JSON serialization library and data mapper. It functions as an object mapper that converts JSON… square/moshi — Moshi is a JSON serialization library and parser for Kotlin and Java. It functions as a reflectionless JSON encoder… bytedance/sonic — Sonic is a high-performance Go JSON serialization library that provides tools for encoding and decoding native data…