ObjectMapper is a framework written in Swift that makes it easy for you to convert your model objects (classes and structs) to and from JSON. Once your class implements Mappable, ObjectMapper allows you to easily convert to and from JSON. Use functions to validate JSON prior to object serialization provide an existing cached object to be used for mapping, return an object of another type (which also conforms to BaseMappable) to be used for mapping. For instance, you may inspect the JSON to infer the type of object that should be used for mapping. ObjectMapper supports dot notation within keys for easy mapping of nested objects. ObjectMapper also supports custom transforms that convert values during the mapping process. To use a transform, simply create a tuple with map["field_name"] and the transform of your choice on the right side of the <- operator.

Features

  • Mapping JSON to objects
  • Mapping objects to JSON
  • Nested Objects (stand alone, in arrays or in dictionaries)
  • Custom transformations during mapping
  • Struct support
  • Immutable support

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow ObjectMapper

ObjectMapper Web Site

Other Useful Business Software
The sales CRM that makes your life easy, so all you have to do is sell. Icon
The sales CRM that makes your life easy, so all you have to do is sell.

The simpler way to sell

Welcome to the simpler way to sell. Pipedrive is CRM software that makes your life easy, for less legwork and more sales. Let us track your sales conversations, eliminate admin tasks, get you more leads and uncover how you win, because your day belongs to you. Join more than 100,000 sales teams around the world that use the CRM rated #1 by SoftwareReviews in 2019. Start your free 14-day trial and get full access – no credit card needed.
Try it free (No Credit Card Required)
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ObjectMapper!

Additional Project Details

Operating Systems

Apple iPhone, Mac

Programming Language

Swift

Related Categories

Swift JSON Software, Swift Object-Relational Mapping (ORM) Software, Swift JSON Serialization Libraries

Registered

2021-06-29